summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index 1420f1a3..507feec3 100755
--- a/configure
+++ b/configure
@@ -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