summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 04:32:56 +0000
committerkan <kan@FreeBSD.org>2007-05-19 04:32:56 +0000
commitbabe0719d6194f6424ef45cf454eb03141c42eea (patch)
treeb9fd2c2b99bbb7306868a883977c17dbb6b7c0f4 /lib
parent34d4c477d20637aaa12f006d030d9448cffa87e9 (diff)
downloadFreeBSD-src-babe0719d6194f6424ef45cf454eb03141c42eea.zip
FreeBSD-src-babe0719d6194f6424ef45cf454eb03141c42eea.tar.gz
Make sure GCC will not try to link libc with itself.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 5c7848f..4c2e868 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -20,6 +20,11 @@ CLEANFILES+=tags
INSTALL_PIC_ARCHIVE=
PRECIOUSLIB=
+#
+# Only link with static libgcc.a (no libgcc_eh.a).
+#
+LDFLAGS+= -nodefaultlibs -lgcc
+
# Define (empty) variables so that make doesn't give substitution
# errors if the included makefiles don't change these:
MDSRCS=
OpenPOWER on IntegriCloud