diff options
author | midipix <writeonce@midipix.org> | 2018-12-13 01:58:34 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-13 11:24:01 -0500 |
commit | d378120119f6a52bb4ea61862e91d4fa199dc52e (patch) | |
tree | 24baa3c4d197220b55d8019a32852ed9a74d4b54 | |
parent | f4662b3234c318392a7dbebd37ecd4459e37ebb4 (diff) | |
download | ntcon-d378120119f6a52bb4ea61862e91d4fa199dc52e.tar.bz2 ntcon-d378120119f6a52bb4ea61862e91d4fa199dc52e.tar.xz |
built system: added the NATIVE_CC_{CFGHOST|CFLAGS|LDFLAGS} variables.
-rw-r--r-- | Makefile.in | 6 | ||||
-rw-r--r-- | config.usage | 3 | ||||
-rwxr-xr-x | configure | 9 |
3 files changed, 17 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index e117fa6..cc4e332 100644 --- a/Makefile.in +++ b/Makefile.in @@ -85,6 +85,9 @@ PSDIR = @psdir@ NATIVE_CC = @native_cc@ NATIVE_CC_HOST = @native_cc_host@ +NATIVE_CC_CFGHOST = @native_cc_cfghost@ +NATIVE_CC_CFLAGS = @native_cc_cflags@ +NATIVE_CC_LDFLAGS = @native_cc_ldflags@ NATIVE_OS = @native_os@ NATIVE_OS_BITS = @native_os_bits@ @@ -428,6 +431,9 @@ clean: clean-implib .display-build: @echo NATIVE_CC:' '$(NATIVE_CC) @echo NATIVE_CC_HOST:' '$(NATIVE_CC_HOST) + @echo NATIVE_CC_CFGHOST:' '$(NATIVE_CC_CFGHOST) + @echo NATIVE_CC_CFLAGS:' '$(NATIVE_CC_CFLAGS) + @echo NATIVE_CC_LDFLAGS:' '$(NATIVE_CC_LDFLAGS) @echo @echo NATIVE_OS:' '$(NATIVE_OS) @echo NATIVE_OS_BITS:' '$(NATIVE_OS_BITS) diff --git a/config.usage b/config.usage index 36303cd..dc892e7 100644 --- a/config.usage +++ b/config.usage @@ -153,6 +153,9 @@ supported variables: NATIVE_CC NATIVE_CC_HOST + NATIVE_CC_CFGHOST + NATIVE_CC_CFLAGS + NATIVE_CC_LDFLAGS NATIVE_OS NATIVE_OS_BITS @@ -138,6 +138,9 @@ init_vars() # overrides mb_native_cc=$NATIVE_CC mb_native_cc_host=$NATIVE_CC_HOST + mb_native_cc_cfghost=$NATIVE_CC_CFGHOST + mb_native_cc_cflags=$NATIVE_CC_CFLAGS + mb_native_cc_ldflags=$NATIVE_CC_LDFLAGS mb_native_os=$NATIVE_OS mb_native_os_bits=$NATIVE_OS_BITS @@ -365,7 +368,8 @@ native_defaults() fi if [ -z "$mb_native_cc_host" ]; then - mb_native_cc_host=$($mb_project_dir/sysinfo/host/host.sh --compiler=$mb_native_cc) + mb_native_cc_host=$($mb_project_dir/sysinfo/host/host.sh \ + --compiler=$mb_native_cc --cflags="$mb_native_cc_cflags") fi if [ -z "$mb_compiler" ]; then @@ -553,6 +557,9 @@ config_copy() \ -e 's^@native_cc@^'"$mb_native_cc"'^g' \ -e 's^@native_cc_host@^'"$mb_native_cc_host"'^g' \ + -e 's^@native_cc_cfghost@^'"$mb_native_cc_cfghost"'^g' \ + -e 's^@native_cc_cflags@^'"$mb_native_cc_cflags"'^g' \ + -e 's^@native_cc_ldflags@^'"$mb_native_cc_ldflags"'^g' \ \ -e 's^@native_os@^'"$mb_native_os"'^g' \ -e 's^@native_os_bits@^'"$mb_native_os_bits"'^g' \ |