summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-02-25 11:32:19 +0000
committerjperkin <jperkin>2016-02-25 11:32:19 +0000
commit34efbe7b066262dfe207f3fe68a1220ebe09eb5e (patch)
treeaf9d0a96105a8441f65f775cc3e4262d7d1e8333 /cross
parent74777f69c7a69514e013cea5a8fbb7540afe1068 (diff)
downloadpkgsrc-34efbe7b066262dfe207f3fe68a1220ebe09eb5e.tar.gz
Use OPSYSVARS.
Diffstat (limited to 'cross')
-rw-r--r--cross/gcc-mips-current/Makefile10
-rw-r--r--cross/libtool-base/Makefile18
2 files changed, 9 insertions, 19 deletions
diff --git a/cross/gcc-mips-current/Makefile b/cross/gcc-mips-current/Makefile
index fd25f5d842d..89e354f1ee4 100644
--- a/cross/gcc-mips-current/Makefile
+++ b/cross/gcc-mips-current/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2015/06/12 10:48:35 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2016/02/25 11:35:33 jperkin Exp $
GCC_DIST_VERSION=4.9.2
GCC_PKGNAME= gcc-mips-${GCC_DIST_VERSION}
@@ -77,12 +77,8 @@ CONFIGURE_ARGS+= --enable-long-long
CONFIGURE_ARGS+= --with-local-prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --enable-threads=posix
CONFIGURE_ARGS+= --with-boot-ldflags=${BOOT_LDFLAGS:Q}
-.if ${OPSYS} == "NetBSD"
-MAKE_ENV+= ac_cv_func_clock_gettime=yes
-.endif
-.if ${OPSYS} == "DragonFly"
-CONFIGURE_ARGS+= --disable-bootstrap
-.endif
+MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes
+CONFIGURE_ARGS.DragonFly+= --disable-bootstrap
TARGET= mipsel--netbsd
CONFIGURE_ARGS+= --target=${TARGET}
diff --git a/cross/libtool-base/Makefile b/cross/libtool-base/Makefile
index 04edbbc5e52..1221b7c20b8 100644
--- a/cross/libtool-base/Makefile
+++ b/cross/libtool-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2014/10/09 13:44:33 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2016/02/25 11:35:33 jperkin Exp $
# XXX This is kludgerific copypasta of devel/libtool-base/Makefile for
# cross-compilation. Please make it go away!
@@ -44,23 +44,17 @@ TEST_TARGET= check
OVERRIDE_DIRDEPTH.install-sh= 1
-.if ${OPSYS} == "AIX"
-
-# always build libraries and executables that use the runtime linker.
+# Always build libraries and executables that use the runtime linker.
# in addition, disable libtool locking, as the test is broken on AIX,
# and results in files being locked indefinitely.
-LDFLAGS+= -Wl,-brtl
-CONFIGURE_ARGS+= --disable-libtool-lock
-
-.elif ${OPSYS} == "IRIX"
+LDFLAGS.AIX+= -Wl,-brtl
+CONFIGURE_ARGS.AIX+= --disable-libtool-lock
# The MIPSpro compiler doesn't support -c with -o, but the locking
# workaround is itself broken. Disable it unconditionally.
-CONFIGURE_ARGS+= --disable-libtool-lock
+CONFIGURE_ARGS.IRIX+= --disable-libtool-lock
-.elif ${OPSYS} == "SunOS"
-CFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
-.endif
+CFLAGS.SunOS+= ${_COMPILER_ABI_FLAG.${ABI}}
# We are going to want libtool to find the same versions of the C, C++,
# and Fortran compilers.