History

configure: Set default HOSTCFLAGS/HOSTCPPFLAGS after compiler detection

This prevents the default HOSTCFLAGS from getting clobbered by flags passed to configure on the command line.

Diego Biurrun committed 12 years ago

Commit 8267f931 parent 91c98181 file · +2 −2Browse files

Unified · Split

configure+2−2
@@ -2125,8 +2125,6 @@ HOSTCC_E='-E -o $@' · 2124 unmodified lines
21252125 HOSTCC_O='-o $@'
21262126 HOSTLD_O='-o $@'
21272127
2128−host_cflags='-O3'
2129−host_cppflags='-D_ISOC99_SOURCE'
21302128 host_libs='-lm'
21312129 host_cflags_filter=echo
21322130 host_ldflags_filter=echo
@@ -3167,8 +3165,10 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags -D_LARGEFILE_SOURCE · 1034 unmodified lines
31673165 #include <stdlib.h>
31683166 EOF
31693167
3168+add_host_cppflags -D_ISOC99_SOURCE
31703169 check_host_cflags -std=c99
31713170 check_host_cflags -Wall
3171+check_host_cflags -O3
31723172
31733173 check_64bit(){
31743174 arch32=$1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t