Source-Changes-HG archive

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

[src/trunk]: src/sys/rump Instead of maintaining an evergrowing list of -U's, ...



details:   https://anonhg.NetBSD.org/src/rev/bab623a4701e
branches:  trunk
changeset: 782817:bab623a4701e
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Nov 21 17:53:10 2012 +0000

description:
Instead of maintaining an evergrowing list of -U's, leave that up
to an external script.

diffstat:

 sys/rump/Makefile.rump |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 91863f1a8820 -r bab623a4701e sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Wed Nov 21 17:51:42 2012 +0000
+++ b/sys/rump/Makefile.rump    Wed Nov 21 17:53:10 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rump,v 1.66 2012/11/21 17:51:42 pooka Exp $
+#      $NetBSD: Makefile.rump,v 1.67 2012/11/21 17:53:10 pooka Exp $
 #
 
 WARNS?=                3       # XXX: src/sys won't compile with -Wsign-compare yet
@@ -59,9 +59,8 @@
 #LDFLAGS+=     -nodefaultlibs
 
 # make sure __NetBSD__ gets defined (for builds on non-NetBSD)
-# aaand make sure cc doesn't source files any wild ideas
-CPPFLAGS+=     -D__NetBSD__
-CPPFLAGS+=     -Ulinux -U__linux -U__linux__ -U__gnu_linux__
+# also, give those builds a way to undef the local compiler's macros
+CPPFLAGS+=     -D__NetBSD__ ${RUMPKERN_UNDEF}
 
 RUMPKERNEL=    This is NetBSD and I am the rump.  Good evening.
 



Home | Main Index | Thread Index | Old Index