summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-10-18 04:28:31 +0000
committerdg <dg@FreeBSD.org>1995-10-18 04:28:31 +0000
commit6855a7ee1e57a9c0557fdbd7a18296365cf56eda (patch)
treec251cc75210a538d052786b5704d4c4648ee5de5 /gnu
parentaa55f7313addb8d2d76f217471dab2b299177893 (diff)
downloadFreeBSD-src-6855a7ee1e57a9c0557fdbd7a18296365cf56eda.zip
FreeBSD-src-6855a7ee1e57a9c0557fdbd7a18296365cf56eda.tar.gz
When building -static, link with special scrt0.o instead of crt0.o. This
reduces the text size by about 1.5Kbytes.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/include/tm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/include/tm.h b/gnu/usr.bin/cc/include/tm.h
index 440d509..4b2909b 100644
--- a/gnu/usr.bin/cc/include/tm.h
+++ b/gnu/usr.bin/cc/include/tm.h
@@ -30,6 +30,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
+#define STARTFILE_SPEC \
+ "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}"
+
#define INCLUDE_DEFAULTS { \
{ "/usr/include", 0 }, \
{ "/usr/include/g++", 1 }, \
OpenPOWER on IntegriCloud