summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-10-22 18:36:47 +0000
committerbde <bde@FreeBSD.org>1995-10-22 18:36:47 +0000
commitef382ef7b636f5f543ce2596d49522fee35b8d37 (patch)
tree3004313c01b2cf3e50d7e190b43c9a65507fc058 /lib/csu
parentb648db0f8fbc5105b6dae691f92efe2b1c1ecd26 (diff)
downloadFreeBSD-src-ef382ef7b636f5f543ce2596d49522fee35b8d37.zip
FreeBSD-src-ef382ef7b636f5f543ce2596d49522fee35b8d37.tar.gz
Fixed dependencies for scrt0.o.
Build a static gcrt0.o (sgcrt0.o) too. Currently only the dynamic gcrt0.o is used, although -pg forces -static. Sorted the .o targets.
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/i386/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/csu/i386/Makefile b/lib/csu/i386/Makefile
index 09a6dea..71ce35d 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.19 1995/10/18 04:19:00 davidg Exp $
+# $Id: Makefile,v 1.20 1995/10/20 20:05:15 phk Exp $
CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer
-OBJS= scrt0.o crt0.o gcrt0.o c++rt0.o
+OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o
CLEANFILES+= a.out
MAN3+= dlopen.3
MLINKS+= dlopen.3 dlsym.3 \
@@ -11,11 +11,6 @@ MLINKS+= dlopen.3 dlsym.3 \
all: ${OBJS}
-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}
@@ -35,6 +30,18 @@ gcrt0.o: crt0.o
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
+# dependencies fudged as for gcrt0.o
+scrt0.o: crt0.o
+ ${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
+ ${LD} -x -r ${.TARGET}
+ mv a.out ${.TARGET}
+
+# dependencies fudged as for gcrt0.o
+sgcrt0.o: scrt0.o
+ ${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
+ ${LD} -x -r ${.TARGET}
+ mv a.out ${.TARGET}
+
beforeinstall:
cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
OpenPOWER on IntegriCloud