diff options
author | tv <tv@pkgsrc.org> | 2004-10-09 03:49:13 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2004-10-09 03:49:13 +0000 |
commit | f20b90cf207908e9da7123b26e1bb17c162cd701 (patch) | |
tree | 86750a3c5447431078536f8e69bc31d9e84ace82 /mk | |
parent | ec780e8ec3708827c68daac8e89022418bd64908 (diff) | |
download | pkgsrc-f20b90cf207908e9da7123b26e1bb17c162cd701.tar.gz |
Move -D_ALL_SOURCE for Interix, required for nearly every compilation, from
the funky CPPFLAGS assignment into the new wrapper framework.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Interix.mk | 13 | ||||
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 5 |
2 files changed, 9 insertions, 9 deletions
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk index 587ac960a6b..1bd5e04263d 100644 --- a/mk/platform/Interix.mk +++ b/mk/platform/Interix.mk @@ -1,4 +1,4 @@ -# $NetBSD: Interix.mk,v 1.1 2004/10/06 20:51:47 jlam Exp $ +# $NetBSD: Interix.mk,v 1.2 2004/10/09 03:49:13 tv Exp $ # # Variable definitions for the Interix operating system. @@ -59,8 +59,6 @@ PS?= /bin/ps PWD_CMD?= /bin/pwd # needs to print physical path RM?= /bin/rm RMDIR?= /bin/rmdir -# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform -# and remove this comment. RSH?= /usr/bin/rsh SED?= ${LOCALBASE}/bin/nbsed SETENV?= /bin/env @@ -98,7 +96,11 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type NOLOGIN?= /bin/false PKG_TOOLS_BIN?= ${LOCALBASE}/sbin PKGDIRMODE?= 775 +.if ${BINOWN} == 197108 +ROOT_CMD?= ${SU} - "$$(id -un 197108)" -c +.else ROOT_CMD?= ${SU} - ${ROOT_USER} -c +.endif ROOT_USER?= ${BINOWN} ROOT_GROUP?= 131616 # +Administrators or native language equivalent TOUCH_FLAGS?= @@ -158,11 +160,6 @@ _STRIPFLAG_INSTALL?= -s # install(1) option to strip DEFAULT_SERIAL_DEVICE?= /dev/tty00 SERIAL_DEVICES?= /dev/tty00 /dev/tty01 /dev/tty02 /dev/tty03 -# Interix needs -D_ALL_SOURCE everywhere; little compiles without it. -.if ${CPPFLAGS:M-D_ALL_SOURCE} == "" -CPPFLAGS+= -D_ALL_SOURCE -.endif - # poll(2) is broken; try to work around it by making autoconf believe # it's missing. (Packages without autoconf will need explicit fixing.) .ifdef GNU_CONFIGURE diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index c2bb31e986e..88d70c2c4e8 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.7 2004/10/06 09:49:53 grant Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.8 2004/10/09 03:49:13 tv Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -254,6 +254,9 @@ _WRAP_TRANSFORM_SED.IMAKE= # empty # XXX This section is ${OPSYS}-specific and shouldn't be here. # XXX .if ${OPSYS} == "Interix" +_WRAP_EXTRA_ARGS.CC+= -D_ALL_SOURCE +_WRAP_EXTRA_ARGS.CXX+= -D_ALL_SOURCE +_WRAP_EXTRA_ARGS.CPP+= -D_ALL_SOURCE _WRAP_CMD_SINK.CC= ${WRAPPER_TMPDIR}/cmd-sink-interix-gcc _WRAP_CMD_SINK.CXX= ${_WRAP_CMD_SINK.CC} _WRAP_CMD_SINK.LD= ${WRAPPER_TMPDIR}/cmd-sink-interix-ld |