summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386/Makefile
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-10-18 04:19:00 +0000
committerdg <dg@FreeBSD.org>1995-10-18 04:19:00 +0000
commitaa55f7313addb8d2d76f217471dab2b299177893 (patch)
tree081b7e830b4121e873c3a2d381626f95d189118c /lib/csu/i386/Makefile
parent00f14e6ccbc691f078558795d8ae44bd70f7e023 (diff)
downloadFreeBSD-src-aa55f7313addb8d2d76f217471dab2b299177893.zip
FreeBSD-src-aa55f7313addb8d2d76f217471dab2b299177893.tar.gz
Create a scrt0.o file that specifically excludes the shared-lib support.
This will be used for -static programs.
Diffstat (limited to 'lib/csu/i386/Makefile')
-rw-r--r--lib/csu/i386/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/csu/i386/Makefile b/lib/csu/i386/Makefile
index a816e6a..d6b4e3b 100644
--- a/lib/csu/i386/Makefile
+++ b/lib/csu/i386/Makefile
@@ -1,8 +1,8 @@
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
-# $Id: Makefile,v 1.17 1995/08/06 12:23:18 bde Exp $
+# $Id: Makefile,v 1.18 1995/08/06 12:37:20 bde Exp $
-CFLAGS+= -DLIBC_SCCS -DDYNAMIC
-OBJS= crt0.o gcrt0.o c++rt0.o
+CFLAGS+= -DLIBC_SCCS
+OBJS= scrt0.o crt0.o gcrt0.o c++rt0.o
CLEANFILES+= a.out
MAN3+= dlopen.3
MLINKS+= dlopen.3 dlsym.3 \
@@ -11,11 +11,16 @@ MLINKS+= dlopen.3 dlsym.3 \
all: ${OBJS}
-crt0.o: crt0.c
+scrt0.o: crt0.c
${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
+crt0.o: crt0.c
+ ${CC} ${CFLAGS} -c -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
+ ${LD} -x -r ${.TARGET}
+ mv a.out ${.TARGET}
+
c++rt0.o: c++rt0.c
${CC} ${CFLAGS} -fpic -c ${.CURDIR}/c++rt0.c
@${LD} -x -r ${.TARGET}
@@ -26,7 +31,7 @@ c++rt0.o: c++rt0.c
# to get the dependencies mostly correct.
#
gcrt0.o: crt0.o
- ${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
+ ${CC} ${CFLAGS} -c -DMCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
@@ -46,7 +51,7 @@ depend: .depend
.depend: crt0.c c++rt0.c
rm -f .depend
- mkdep ${CFLAGS} -DCRT0 ${.CURDIR}/crt0.c
+ mkdep ${CFLAGS} -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c
mkdep -a ${CFLAGS} ${.CURDIR}/c++rt0.c
lint tags:
OpenPOWER on IntegriCloud