summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-01-13 06:55:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-01-13 06:55:18 -0800
commit6dfa7d64e118c4cb3295567107843776afbb552a (patch)
treeccef3d9599ab2336bb39ff3932cb92d92dee1802
parentbb1ea2348c5224ba1c8f21ddfdc8fed2d19e6ed3 (diff)
downloadtxr-6dfa7d64e118c4cb3295567107843776afbb552a.tar.gz
txr-6dfa7d64e118c4cb3295567107843776afbb552a.tar.bz2
txr-6dfa7d64e118c4cb3295567107843776afbb552a.zip
Support extra linker flags.
* Makefile (EXTRA_LDFLAGS): New variable, interpolated into LDFLAGS.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95587e86..a33a0a83 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ CFLAGS := -iquote $(conf_dir) $(if $(top_srcdir),-iquote $(top_srcdir)) \
$(LANG_FLAGS) $(DIAG_FLAGS) \
$(DBG_FLAGS) $(PLATFORM_CFLAGS) $(EXTRA_FLAGS)
CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS))
-LDFLAGS := -lm $(CONF_LDFLAGS) $(PLATFORM_LDFLAGS)
+LDFLAGS := -lm $(CONF_LDFLAGS) $(PLATFORM_LDFLAGS) $(EXTRA_LDFLAGS)
ifneq ($(subst g++,@,$(notdir $(CC))),$(notdir $(CC)))
CFLAGS := $(filter-out -Wmissing-prototypes -Wstrict-prototypes,$(CFLAGS))