summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/makeinclude/rules.bin.GNU2
-rw-r--r--include/makeinclude/wrapper_macros.GNU2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/makeinclude/rules.bin.GNU b/include/makeinclude/rules.bin.GNU
index 1e74a53d39b..ad6c1c02220 100644
--- a/include/makeinclude/rules.bin.GNU
+++ b/include/makeinclude/rules.bin.GNU
@@ -9,6 +9,8 @@
VOBJS = \
$(subst .cpp,.$(OBJEXT),$(foreach file,$(SRC),$(VDIR)$(notdir $(file))))
+VLDLIBS := $(LDLIBS) $(ACELIB) $(LIBS)
+
ifeq ($(CHORUSLINK),true)
$(BIN): %: $(VDIR)%.$(OBJEXT) $(VOBJS)
$(LINK.cc) $(CC_OUTPUT_FLAG) $@ $^ $(VLDLIBS) $(LDFLAGS) $(POSTLINK)
diff --git a/include/makeinclude/wrapper_macros.GNU b/include/makeinclude/wrapper_macros.GNU
index 4b914878933..8aa0dd5c3f7 100644
--- a/include/makeinclude/wrapper_macros.GNU
+++ b/include/makeinclude/wrapper_macros.GNU
@@ -490,8 +490,6 @@ else # ! shared_libs
endif # ! static_libs
endif # ! shared_libs
-VLDLIBS := $(LDLIBS) $(ACELIB) $(LIBS)
-
ifeq ($(probe),0)
override probe =
endif # probe