Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common_elf Deal better with platforms that don't yet...



details:   https://anonhg.NetBSD.org/src/rev/8199c6794f92
branches:  trunk
changeset: 526512:8199c6794f92
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun May 05 00:45:31 2002 +0000

description:
Deal better with platforms that don't yet support shared libraries:
* Only add -fPIC if MKPIC != no.
* Only build crtbeginS and crtendS if MKPIC != no.

diffstat:

 lib/csu/common_elf/Makefile.inc |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 8207cf90664d -r 8199c6794f92 lib/csu/common_elf/Makefile.inc
--- a/lib/csu/common_elf/Makefile.inc   Sun May 05 00:34:00 2002 +0000
+++ b/lib/csu/common_elf/Makefile.inc   Sun May 05 00:45:31 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.15 2002/05/05 00:34:00 thorpej Exp $
+#      $NetBSD: Makefile.inc,v 1.16 2002/05/05 00:45:31 thorpej Exp $
 
 .include <bsd.own.mk>
 
@@ -16,14 +16,14 @@
 CPPFLAGS+=     -DJCR
 CPPFLAGS+=     -DDSO_HANDLE
 
-.if !defined(MACHINE_ARCH) || ${MACHINE_ARCH} != "m68000"
+.PATH:         ${.CURDIR}/../common_elf
+
+OBJS+=         crt0.o gcrt0.o crtbegin.o crtend.o
+.if ${MKPIC} != "no"
+OBJS+=         crtbeginS.o crtendS.o
 COPTS+=                -fPIC
 .endif
 
-.PATH:         ${.CURDIR}/../common_elf
-
-OBJS+=         crt0.o gcrt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o
-
 realall: ${OBJS}
 
 crt0.o: crt0.c



Home | Main Index | Thread Index | Old Index