Source-Changes-HG archive

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

[src/trunk]: src/sys/rump Use correct ldscript etc. for Sun ld.



details:   https://anonhg.NetBSD.org/src/rev/9c47894a67ef
branches:  trunk
changeset: 785471:9c47894a67ef
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 15 12:15:52 2013 +0000

description:
Use correct ldscript etc. for Sun ld.

diffstat:

 sys/rump/Makefile.rump |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 634bbe7cc441 -r 9c47894a67ef sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Fri Mar 15 12:13:07 2013 +0000
+++ b/sys/rump/Makefile.rump    Fri Mar 15 12:15:52 2013 +0000
@@ -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}/..
 .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"



Home | Main Index | Thread Index | Old Index