This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Rename LDFLAGS-XXX to LDLIBS-XXX for -lstdc++


Hi,

We should use LDLIBS-XXX instead of LDFLAGS-XXX for -lstdc++.  The
difference is LDFLAGS-XXX is placed before input files and it doesn't
work with libstdc++.a.  OK to install?

Thanks.

H.J.
---
	* debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
	(LDLIBS-tst-chk4): This.
	(LDFLAGS-tst-chk5): Renamed to ...
	(LDLIBS-tst-chk5): This.
	(LDFLAGS-tst-chk6): Renamed to ...
	(LDLIBS-tst-chk6): This.
	(LDFLAGS-tst-lfschk4): Renamed to ...
	(LDLIBS-tst-lfschk4): This.
	(LDFLAGS-tst-lfschk5): Renamed to ...
	(LDLIBS-tst-lfschk5): This.
	(LDFLAGS-tst-lfschk6): Renamed to ...
	(LDLIBS-tst-lfschk6): This.

diff --git a/debug/Makefile b/debug/Makefile
index f4e38b4..ae5b674 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -114,12 +114,12 @@ tst-lfschk3-ENV = LOCPATH=$(common-objpfx)localedata
 tst-lfschk4-ENV = LOCPATH=$(common-objpfx)localedata
 tst-lfschk5-ENV = LOCPATH=$(common-objpfx)localedata
 tst-lfschk6-ENV = LOCPATH=$(common-objpfx)localedata
-LDFLAGS-tst-chk4 = -lstdc++
-LDFLAGS-tst-chk5 = -lstdc++
-LDFLAGS-tst-chk6 = -lstdc++
-LDFLAGS-tst-lfschk4 = -lstdc++
-LDFLAGS-tst-lfschk5 = -lstdc++
-LDFLAGS-tst-lfschk6 = -lstdc++
+LDLIBS-tst-chk4 = -lstdc++
+LDLIBS-tst-chk5 = -lstdc++
+LDLIBS-tst-chk6 = -lstdc++
+LDLIBS-tst-lfschk4 = -lstdc++
+LDLIBS-tst-lfschk5 = -lstdc++
+LDLIBS-tst-lfschk6 = -lstdc++
 
 tests = backtrace-tst tst-longjmp_chk tst-chk1 tst-chk2 tst-chk3 \
 	tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk \
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 34b3698..219c49e 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #13679]
+	* debug/Makefile (LDFLAGS-tst-cancel24): Renamed to ...
+	(LDLIBS-tst-cancel24): This.
+
 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #14545]
diff --git a/nptl/Makefile b/nptl/Makefile
index ad7ac05..6f2b66c 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -507,7 +507,7 @@ $(objpfx)tst-clock2: $(common-objpfx)rt/librt.a
 $(objpfx)tst-rwlock14: $(common-objpfx)rt/librt.a
 endif
 
-LDFLAGS-tst-cancel24 = $(no-as-needed) -lstdc++
+LDLIBS-tst-cancel24 = $(no-as-needed) -lstdc++
 
 extra-B-pthread.so = -B$(common-objpfx)nptl/
 $(objpfx)libpthread.so: $(addprefix $(objpfx),$(crti-objs) $(crtn-objs))
-- 
1.7.11.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]