diff options
author | Christopher Meng <i@cicku.me> | 2015-08-03 13:03:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-03 13:03:30 -0700 |
commit | caac8c95a04f3cf83eb81510680833e2c6cf26d5 (patch) | |
tree | 8bd1ae0c8194de422f0de0e1888c450d15d4ae9a /configure | |
parent | 1878f60ebdacdd52fb05a171eb07b4bc91e9704c (diff) | |
download | txr-caac8c95a04f3cf83eb81510680833e2c6cf26d5.tar.gz txr-caac8c95a04f3cf83eb81510680833e2c6cf26d5.tar.bz2 txr-caac8c95a04f3cf83eb81510680833e2c6cf26d5.zip |
Custom linker flags support.
* Makefile (PLATFORM_FLAGS): Rename to PLATFORM_CFLAGS.
(LDFLAGS): New variable. Includes -lm and PLATFORM_CFLAGS.
(LINK_PROG): Use $(LDFLAGS) instead of -lm.
* configure (platform_flags): Renamed to platform_cflags.
(platform_ldflags): New variable.
(gen_config_make): Rename PLATFORM_CFLAGS and generate
PLATFORM_LDFLAGS.
Usage help text updated.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -101,9 +101,10 @@ diag_flags='-Wall -Werror=implicit-function-declaration -Werror=missing-prototyp debug_flags=-g debug_also= inline= -platform_flags= +platform_cflags= remove_flags= lex_dbg_flags= +platform_ldflags= txr_dbg_opts=--gc-debug valgrind= lit_align= @@ -364,11 +365,16 @@ debug-also [$debug_also] of object files compiled with different optimization flags, and produce two binaries: txr and txr-dbg. -platform-flags [$platform_flags] +platform-cflags [$platform_cflags] Specify additional compiler flags for anything else, such as CPU tuning, target ABI selection, code generation options, et cetera. +platform-ldflags [$platform_ldflags] + + Specify additional linker flags for anything else, such as hardening, + linking as needed, et cetera. + remove-flags [$remove_flags] This is a negative otpion. Any flags mentioned in this variable @@ -659,7 +665,8 @@ BUILD_TARGETS := $(if [ $debug_also ] ; then echo '$(PROG) $(PROG)-dbg' else echo '$(PROG)'; fi) -PLATFORM_FLAGS := $platform_flags +PLATFORM_CFLAGS := $platform_cflags +PLATFORM_LDFLAGS := $platform_ldflags REMOVE_FLAGS := $remove_flags LEX_DBG_FLAGS := $lex_dbg_flags TXR_DBG_OPTS := $txr_dbg_opts |