Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/conf only set LD to /usr/ccs/bin/ld if it e...



details:   https://anonhg.NetBSD.org/src/rev/b02d73781bd2
branches:  trunk
changeset: 473458:b02d73781bd2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jun 05 01:56:31 1999 +0000

description:
only set LD to /usr/ccs/bin/ld if it exists.  avoid empty SFILES.

diffstat:

 sys/arch/sparc64/conf/Makefile.sparc64 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 19ef506971ea -r b02d73781bd2 sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64    Fri Jun 04 23:38:41 1999 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64    Sat Jun 05 01:56:31 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sparc64,v 1.8 1999/03/15 01:15:06 mrg Exp $
+#      $NetBSD: Makefile.sparc64,v 1.9 1999/06/05 01:56:31 mrg Exp $
 
 # Makefile for NetBSD
 #
@@ -24,7 +24,9 @@
 .include "/etc/mk.conf"
 
 CC?=   cc
+.if exists(/usr/ccs/bin/ld)
 LD?=   /usr/ccs/bin/ld #Need to use Solaris ld to use the solaris loader
+.endif
 MKDEP?=        mkdep
 STRIP?=        strip
 SIZE?= size
@@ -40,10 +42,14 @@
 OS!=uname -s
 .if (${OS} == "NetBSD")
 USE_GENASSYM?= no
-SVR4=
 .else
 USE_GENASSYM?= yes
+.endif
+
+.if exists(/usr/ccs/bin/ld)
 SVR4=-U__SVR4 -U__svr4__ -D__NetBSD__
+.else
+SVR4=
 .endif
 
 # source tree is located via $S relative to the compilation directory
@@ -180,7 +186,9 @@
 .depend: ${SRCS} assym.h param.c
        ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${SPARC64}/sparc64/locore.s
        ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
+.if (${SFILES} != "")
        ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
+.endif
        sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
          ${CPPFLAGS} < ${SPARC64}/sparc64/genassym.cf
        @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend



Home | Main Index | Thread Index | Old Index