summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 16:38:39 +0000
committerkan <kan@FreeBSD.org>2007-05-19 16:38:39 +0000
commitb9acdd0d23db394b11119a001fb06f85f490ce01 (patch)
treebf253b4f52d7f3570922bd6272b999463c87dfa1 /lib
parentf09057052a71d7d63bfe51b076ba0184edf867ad (diff)
downloadFreeBSD-src-b9acdd0d23db394b11119a001fb06f85f490ce01.zip
FreeBSD-src-b9acdd0d23db394b11119a001fb06f85f490ce01.tar.gz
Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS
puts it before library's object files, making the whole constuct useless.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 4c2e868..4f107ee 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -23,7 +23,8 @@ PRECIOUSLIB=
#
# Only link with static libgcc.a (no libgcc_eh.a).
#
-LDFLAGS+= -nodefaultlibs -lgcc
+LDFLAGS+= -nodefaultlibs
+LDADD+= -lgcc
# Define (empty) variables so that make doesn't give substitution
# errors if the included makefiles don't change these:
OpenPOWER on IntegriCloud