Module Name:    src
Committed By:   pooka
Date:           Fri Mar 15 12:15:52 UTC 2013

Modified Files:
        src/sys/rump: Makefile.rump

Log Message:
Use correct ldscript etc. for Sun ld.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/rump/Makefile.rump

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/Makefile.rump
diff -u src/sys/rump/Makefile.rump:1.71 src/sys/rump/Makefile.rump:1.72
--- src/sys/rump/Makefile.rump:1.71	Fri Mar 15 11:15:22 2013
+++ src/sys/rump/Makefile.rump	Fri Mar 15 12:15:52 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.rump,v 1.71 2013/03/15 11:15:22 pooka Exp $
+#	$NetBSD: Makefile.rump,v 1.72 2013/03/15 12:15:52 pooka Exp $
 #
 
 WARNS?=		3	# XXX: src/sys won't compile with -Wsign-compare yet
@@ -37,7 +37,14 @@ CPPFLAGS+=	-I${RUMPTOP}/../arch
 CPPFLAGS+=	-I${RUMPTOP}/..
 .endif
 
+# my ld or yours?
+.ifdef HAVE_SUN_LD
+LDFLAGS+=	-Wl,-M ${RUMPTOP}/ldscript_sun.rump
+SRCS+=		linksyms_sun.c
+PATH:		${RUMPTOP}
+.else
 LDFLAGS+=	-Wl,-T ${RUMPTOP}/ldscript.rump
+.fi
 
 RUMP_DIAGNOSTIC?=yes
 .if ${RUMP_DIAGNOSTIC} == "yes"

Reply via email to