diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 06:55:18 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 06:55:18 -0800 |
commit | 6dfa7d64e118c4cb3295567107843776afbb552a (patch) | |
tree | ccef3d9599ab2336bb39ff3932cb92d92dee1802 | |
parent | bb1ea2348c5224ba1c8f21ddfdc8fed2d19e6ed3 (diff) | |
download | txr-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |