stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abl...@apache.org
Subject svn commit: r474515 - /incubator/stdcxx/trunk/etc/config/GNUmakefile.bin
Date Mon, 13 Nov 2006 21:04:51 GMT
Author: ablack
Date: Mon Nov 13 13:04:50 2006
New Revision: 474515

URL: http://svn.apache.org/viewvc?view=rev&rev=474515
Log:
2006-11-10  Andrew Black  <ablack@roguewave.com>

	* GNUmakefile.bin (LDFLAGS.exec): Define LDFLAGS variant, filtering out the stdcxx library.
	(exec): Use LDFLAGS.exec rather than LDFLAGS.


Modified:
    incubator/stdcxx/trunk/etc/config/GNUmakefile.bin

Modified: incubator/stdcxx/trunk/etc/config/GNUmakefile.bin
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/GNUmakefile.bin?view=diff&rev=474515&r1=474514&r2=474515
==============================================================================
--- incubator/stdcxx/trunk/etc/config/GNUmakefile.bin (original)
+++ incubator/stdcxx/trunk/etc/config/GNUmakefile.bin Mon Nov 13 13:04:50 2006
@@ -45,6 +45,9 @@
   LDFLAGS += $(CPPFLAGS)
 endif   # ($(CXX_REPOSITORY),)
 
+# Don't want to link exec utility with stdlib, so create our own LDFLAGS var
+LDFLAGS.exec = $(filter-out -l$(LIBBASE),$(LDFLAGS))
+
 ##############################################################################
 #  TARGETS
 ##############################################################################
@@ -55,8 +58,8 @@
 
 # link the run utility
 exec: runall.o cmdopt.o output.o util.o exec.o display.o
-	@echo "$(LD) $^ -o $@ $(LDFLAGS) $(LDLIBS)" >> $(LOGFILE)
-	$(LD) $^ -o $@ $(LDFLAGS) $(LDLIBS) $(TEEOPTS)
+	@echo "$(LD) $^ -o $@ $(LDFLAGS.exec) $(LDLIBS)" >> $(LOGFILE)
+	$(LD) $^ -o $@ $(LDFLAGS.exec) $(LDLIBS) $(TEEOPTS)
 
 # link the localedef utility
 localedef: localedef.o aliases.o charmap.o codecvt.o collate.o ctype.o \



Mime
View raw message