Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: AIX.mk,v 1.40 2013/04/28 12:53:56 obache Exp $
# $NetBSD: AIX.mk,v 1.42 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the AIX operating system.
@@ -48,11 +48,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
@@ -66,3 +61,11 @@ _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
# to avoid a test required by the libtool script that takes forever.
# FIXME: Adjust to work on this system and enable the lines below.
#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
# On AIX, there are a handful of utilies (i.e., ar(1), ld(1), strip(1), etc)
# that care about the type of object files they should examine via the various'
# flags. Alternatively, it is easier to export OBJECT_MODE with the
# appropriate $ABI versus piping through flags for all related utilities.
.if defined(ABI)
ALL_ENV+= OBJECT_MODE=${ABI}
.endif

View File

@@ -1,4 +1,4 @@
# $NetBSD: BSDOS.mk,v 1.33 2013/04/28 12:53:56 obache Exp $
# $NetBSD: BSDOS.mk,v 1.34 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the BSD/OS operating system.
@@ -55,11 +55,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -b -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: Bitrig.mk,v 1.1 2015/06/04 15:48:45 sevan Exp $
# $NetBSD: Bitrig.mk,v 1.3 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Bitrig operating system.
@@ -49,15 +49,10 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
.if (${MACHINE_ARCH} == "amd64") || (${MACHINE_ARCH} == "arm")
.if (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "arm")
DEFAULT_SERIAL_DEVICE?= /dev/tty00
SERIAL_DEVICES?= /dev/tty00 \
/dev/tty01

View File

@@ -1,4 +1,4 @@
# $NetBSD: Cygwin.mk,v 1.15 2013/10/13 10:10:05 wiz Exp $
# $NetBSD: Cygwin.mk,v 1.16 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Windows with Cygwin.
@@ -56,11 +56,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= no # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: Darwin.mk,v 1.71 2015/09/07 11:48:35 jperkin Exp $
# $NetBSD: Darwin.mk,v 1.83 2016/09/06 09:50:20 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -67,8 +67,9 @@ ROOT_GROUP?= wheel
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_cputime?= ulimit -t `ulimit -H -t`
GROUPADD?= ${LOCALBASE}/sbin/groupadd
USERADD?= ${LOCALBASE}/sbin/useradd
@@ -77,25 +78,32 @@ _USER_DEPENDS= user-darwin>=20130712:../../sysutils/user_darwin
_OPSYS_EMULDIR.darwin= # empty
_OPSYS_SYSTEM_RPATH?= /usr/lib
_OPSYS_LIB_DIRS?= /usr/lib
OSX_VERSION!= sw_vers -productVersion
. if ${OSX_VERSION:R:R} != ${OSX_VERSION:R}
OSX_VERSION:= ${OSX_VERSION:R}
. endif
MAKEFLAGS+= OSX_VERSION=${OSX_VERSION:Q}
#
# From Xcode 5 onwards system headers are no longer installed by default
# into /usr/include, so we need to query their location.
# into /usr/include, so we need to query their location if /usr/include is
# not available.
#
# Use current system version SDK (avoid newer SDKs).
#
.if exists(/usr/bin/xcrun)
OSX_VERS!= sw_vers -productVersion
. if ${OSX_VERS:R:R} != ${OSX_VERS:R}
OSX_VERS:=${OSX_VERS:R}
. endif
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERS} --show-sdk-path 2>/dev/null || echo /nonexistent
.endif
_OPSYS_SYSTEM_RPATH?= /usr/lib
_OPSYS_LIB_DIRS?= /usr/lib
.if exists(/usr/include/stdio.h)
_OPSYS_INCLUDE_DIRS?= /usr/include
.elif exists(${OSX_SDK_PATH}/usr/include/stdio.h)
_OPSYS_INCLUDE_DIRS?= ${OSX_SDK_PATH}/usr/include
_OPSYS_INCLUDE_DIRS?= /usr/include
.elif exists(/usr/bin/xcrun)
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
. if exists(${OSX_SDK_PATH}/usr/include/stdio.h)
_OPSYS_INCLUDE_DIRS?= ${OSX_SDK_PATH}/usr/include
MAKEFLAGS+= OSX_SDK_PATH=${OSX_SDK_PATH:Q}
. else
PKG_FAIL_REASON+= "No suitable Xcode SDK or Command Line Tools installed."
. endif
.endif
.if ${OS_VERSION:R} >= 6
@@ -126,21 +134,24 @@ USE_BUILTIN.dl= no # Darwin-[56].* uses devel/dlcompat
.endif
# Builtin defaults which make sense for this platform.
_OPSYS_PREFER.libuuid?= native # system headers assume uuid_string_t
_OPSYS_PREFER.linux-pam?= native
_OPSYS_PREFER.mit-krb5?= native
.if ${OS_VERSION:R} >= 11
_OPSYS_PREFER.openssl?= pkgsrc # builtin deprecated from 10.7 onwards
.endif
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
.if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-force-load
_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
.else
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
.endif
# Remove common GNU ld arguments incompatible with the Darwin linker.
BUILDLINK_TRANSFORM+= rm:-Wl,-O1
BUILDLINK_TRANSFORM+= rm:-Wl,-Bdynamic
BUILDLINK_TRANSFORM+= rm:-Wl,-Bsymbolic
BUILDLINK_TRANSFORM+= rm:-Wl,-export-dynamic
BUILDLINK_TRANSFORM+= rm:-Wl,-warn-common
BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
BUILDLINK_TRANSFORM+= rm:-Wl,--no-as-needed
BUILDLINK_TRANSFORM+= rm:-Wl,--disable-new-dtags
BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags
BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic
BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections
BUILDLINK_TRANSFORM+= rm:-Wl,--no-undefined
_OPSYS_CAN_CHECK_SHLIBS= yes # check shared libraries using otool(1)
@@ -164,6 +175,20 @@ CONFIGURE_ENV+= ac_cv_func_poll=no
. endif
.endif
# If the deployment target is not set explicitly, the linker in Tiger and prior
# versions running on PowerPC hosts defaults to a target of 10.1.
# Set the target for Tiger systems to be 10.4.
.if !empty(MACHINE_PLATFORM:MDarwin-8.*-powerpc)
MAKE_ENV+= MACOSX_DEPLOYMENT_TARGET="10.4"
.endif
# El Capitan GM has a file system bug where a deep directory hierarchy can be
# created but not removed. Avoid running a test which does exactly this.
# See https://openradar.appspot.com/radar?id=6160634819379200
.if defined(GNU_CONFIGURE) && !empty(OS_VERSION:M15.[01].0)
CONFIGURE_ENV+= gl_cv_func_getcwd_abort_bug=no
.endif
# Use "/bin/ksh" for buildlink3 wrapper script to improve build performance.
.if (!empty(OS_VERSION:M9.*) || !empty(OS_VERSION:M1[0-2].*) || \
!empty(OS_VERSION:M1[4-9].*)) && \

View File

@@ -1,4 +1,4 @@
# $NetBSD: DragonFly.mk,v 1.47 2015/09/10 19:49:58 jperkin Exp $
# $NetBSD: DragonFly.mk,v 1.49 2016/06/29 13:37:19 sevan Exp $
#
# Variable definitions for the DragonFly operating system.
@@ -27,7 +27,7 @@ ULIMIT_CMD_cputime?= ulimit -t `ulimit -H -t`
_OPSYS_EMULDIR.linux= /compat/linux
_OPSYS_SYSTEM_RPATH?= /lib:/usr/lib:/usr/lib/gcc41:/usr/lib/gcc34:/usr/lib/gcc47
_OPSYS_SYSTEM_RPATH?= /lib:/usr/lib:/usr/lib/gcc41:/usr/lib/gcc34:/usr/lib/gcc47:/usr/lib/gcc50
_OPSYS_LIB_DIRS?= /lib /usr/lib
_OPSYS_INCLUDE_DIRS?= /usr/include
@@ -46,11 +46,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: FreeBSD.mk,v 1.31 2015/04/21 17:01:56 joerg Exp $
# $NetBSD: FreeBSD.mk,v 1.32 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -52,11 +52,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: GNUkFreeBSD.mk,v 1.3 2015/04/21 17:01:56 joerg Exp $
# $NetBSD: GNUkFreeBSD.mk,v 1.4 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Debian GNU/kFreeBSD operating system.
@@ -58,11 +58,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: HPUX.mk,v 1.25 2015/04/19 12:02:15 tnn Exp $
# $NetBSD: HPUX.mk,v 1.26 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the HP-UX operating system.
@@ -50,10 +50,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-tools2-HPUX-fixme
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-tools3-HPUX-fixme
DEFAULT_SERIAL_DEVICE?= /dev/tty1p0
SERIAL_DEVICES?= /dev/tty0p0 \
/dev/tty1p0

View File

@@ -1,4 +1,4 @@
# $NetBSD: Haiku.mk,v 1.13 2014/06/09 08:47:29 obache Exp $
# $NetBSD: Haiku.mk,v 1.14 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Haiku operating system.
@@ -57,11 +57,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: IRIX.mk,v 1.42 2013/07/12 10:41:58 jperkin Exp $
# $NetBSD: IRIX.mk,v 1.43 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the IRIX operating system.
@@ -60,14 +60,6 @@ _PATCH_CAN_BACKUP= no # native patch(1) can make backups
.endif
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# XXX:
# These flags are for the IRIX linker. If GNU ld is used, these would need
# to be set to --{no-}whole-archive. So, ugh, let's say we only do
# IRIX tools for the time being.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-all
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-none
# IRIX has /usr/include/iconv.h, but it's not GNU iconv, so mark it
# incompatible.
_INCOMPAT_ICONV= IRIX-*-*

View File

@@ -1,4 +1,4 @@
# $NetBSD: Interix.mk,v 1.76 2015/02/16 10:42:00 jperkin Exp $
# $NetBSD: Interix.mk,v 1.77 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Interix operating system.
@@ -116,11 +116,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: Linux.mk,v 1.63 2015/07/18 15:08:43 wiedi Exp $
# $NetBSD: Linux.mk,v 1.68 2016/09/17 05:41:37 richard Exp $
#
# Variable definitions for the Linux operating system.
@@ -67,6 +67,11 @@ _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/arm-linux-
_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/arm-linux-gnueabi /usr/lib/arm-linux-gnueabi
.endif
.endif
.if !empty(MACHINE_ARCH:Maarch64)
LIBABISUFFIX?= /aarch64-linux-gnu
_OPSYS_SYSTEM_RPATH= /lib:/usr/lib:/lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}
_OPSYS_LIB_DIRS?= /lib /usr/lib /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX}
.endif
.else
_OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}
_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX}
@@ -96,11 +101,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
@@ -125,8 +125,9 @@ LIBABISUFFIX?= 64
# When building 32-bit packages on x86_64 GNU ld isn't smart enough to
# figure out the target architecture based on the objects so we need to
# explicitly set it.
.if ${NATIVE_MACHINE_ARCH} == "x86_64" && ${MACHINE_ARCH} == "i386"
.if ${HOST_MACHINE_ARCH} == "x86_64" && ${MACHINE_ARCH} == "i386"
_WRAP_EXTRA_ARGS.LD+= -m elf_i386
CWRAPPERS_APPEND.ld+= -m elf_i386
.endif
## Use _CMD so the command only gets run when needed!

View File

@@ -1,4 +1,4 @@
# $NetBSD: Minix.mk,v 1.5 2013/04/28 12:53:56 obache Exp $
# $NetBSD: Minix.mk,v 1.6 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the Minix operating system.
@@ -41,11 +41,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple --suffix # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: MirBSD.mk,v 1.11 2015/04/21 17:01:56 joerg Exp $
# $NetBSD: MirBSD.mk,v 1.12 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the MirOS BSD operating system.
@@ -49,12 +49,6 @@ _USE_RPATH= yes # add rpath to LDFLAGS
BUILDLINK_TRANSFORM+= rm:-ldl # libdl.a is an empty static library
BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden # at least until there is a newer gcc
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: NetBSD.mk,v 1.45 2015/08/10 21:44:34 khorben Exp $
# $NetBSD: NetBSD.mk,v 1.48 2016/03/11 23:54:09 khorben Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -76,11 +76,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple --suffix # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
# for programs which use dlopen()
# not necessary since 1.6 (shared libs are linked against libgcc_pic)
.if !empty(OS_VERSION:M1.5*)
@@ -128,19 +123,27 @@ FFLAGS+= -mieee
PKG_HAVE_KQUEUE= # defined
.endif
.if ${PKGSRC_USE_FORT:Uno} != "no"
# build with fortify
_GCC_CFLAGS+= -D_FORTIFY_SOURCE=2
# Register support for FORTIFY (with GCC)
_OPSYS_SUPPORTS_FORTIFY=yes
# Register support for PIE on supported architectures (with GCC)
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64")
_OPSYS_SUPPORTS_MKPIE= yes
.endif
.if ${PKGSRC_USE_SSP:Uno} != "no"
. if (${MACHINE_ARCH} != "alpha") && \
(${MACHINE_ARCH} != "hppa") && \
(${MACHINE_ARCH} != "ia64") && \
(${MACHINE_ARCH} != "mips")
# build with stack protection (with GCC)
_GCC_CFLAGS+= -fstack-protector
. endif
# Register support for RELRO on supported architectures (with GCC)
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64")
_OPSYS_SUPPORTS_RELRO= yes
.endif
# Register support for SSP on most architectures (with GCC)
.if (${MACHINE_ARCH} != "alpha") && \
(${MACHINE_ARCH} != "hppa") && \
(${MACHINE_ARCH} != "ia64") && \
(${MACHINE_ARCH} != "mips")
_OPSYS_SUPPORTS_SSP= yes
.endif
_OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk

View File

@@ -1,4 +1,4 @@
# $NetBSD: OSF1.mk,v 1.35 2015/04/18 22:56:19 tnn Exp $
# $NetBSD: OSF1.mk,v 1.36 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the OSF1 operating system.
@@ -50,10 +50,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,-all
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,-none
DEFAULT_SERIAL_DEVICE?= /dev/tty00
SERIAL_DEVICES?= /dev/tty00 \
/dev/tty01

View File

@@ -1,4 +1,4 @@
# $NetBSD: OpenBSD.mk,v 1.39 2015/05/21 17:15:48 sevan Exp $
# $NetBSD: OpenBSD.mk,v 1.40 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the OpenBSD operating system.
@@ -60,11 +60,6 @@ _PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
.endif
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -67,11 +67,6 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -V simple -b -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is GNU ld.
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
$NetBSD: README,v 1.4 2014/02/14 13:11:17 obache Exp $
$NetBSD: README,v 1.5 2016/03/10 16:58:19 jperkin Exp $
These files contain platform-specific definitions that are used by the
pkgsrc infrastructure.
@@ -91,10 +91,6 @@ TODO: Document all these variables.
_USE_RPATH is "yes" to add rpath to LDFLAGS, otherwise "no"
_OPSYS_WHOLE_ARCHIVE_FLAG
_OPSYS_NO_WHOLE_ARCHIVE_FLAG
LINK_ALL_LIBGCC_HACK
_STRIPFLAG_CC is cc(1) option to strip.

View File

@@ -1,4 +1,4 @@
# $NetBSD: SCO_SV.mk,v 1.1 2014/03/14 22:05:18 ryoon Exp $
# $NetBSD: SCO_SV.mk,v 1.2 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the OpenServer 5.0.7/3.2 and 6.0.0/5.
@@ -44,13 +44,6 @@ _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
#
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is the standard OpenServer 5.0.7/3.2 linker, /usr/ccs/bin/ld.
# The use of GNU ld is not currently supported.
# XXX is this needed for OpenServer?
_OPSYS_WHOLE_ARCHIVE_FLAG=
_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip

View File

@@ -1,4 +1,4 @@
# $NetBSD: SunOS.mk,v 1.65 2015/04/17 08:22:30 jperkin Exp $
# $NetBSD: SunOS.mk,v 1.72 2016/08/25 12:08:29 jperkin Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -24,6 +24,7 @@ ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d`
ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s`
ULIMIT_CMD_cputime?= ulimit -t `${SETENV} LC_MESSAGES=C ulimit -H -t`
ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v`
USERADD?= /usr/sbin/useradd
@@ -75,14 +76,10 @@ _PATCH_CAN_BACKUP= yes # native patch(1) can make backups
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
# ld is not currently supported.
_OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract
# Remove flags specific to GNU ld.
BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
BUILDLINK_TRANSFORM+= rm:-Wl,--disable-new-dtags
BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags
BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic
BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections
BUILDLINK_TRANSFORM+= rm:-Wl,--no-as-needed
@@ -94,6 +91,11 @@ BUILDLINK_TRANSFORM+= rm:-export-dynamic
# Convert GNU ld flags to native SunOS ld flags where possible.
BUILDLINK_TRANSFORM+= opt:-Wl,--rpath:-Wl,-R
# Remove GCC-specific flags if using clang
.if ${PKGSRC_COMPILER} == "clang"
BUILDLINK_TRANSFORM+= rm:-mimpure-text
.endif
# Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it
# incompatible.
_INCOMPAT_ICONV= SunOS-*-*
@@ -110,11 +112,13 @@ _OPSYS_SYSTEM_RPATH?= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}
_OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX}
_OPSYS_INCLUDE_DIRS?= /usr/include
# Enable shlibs checks if readelf is set, not available by default.
_OPSYS_CAN_CHECK_SHLIBS= no
.if !empty(TOOLS_PATH.readelf)
_OPSYS_CAN_CHECK_SHLIBS= yes
.endif
# support FORTIFY (with GCC)
_OPSYS_SUPPORTS_FORTIFY=yes
# support stack protection (with GCC)
_OPSYS_SUPPORTS_SSP= yes
_OPSYS_CAN_CHECK_SHLIBS= yes # requires readelf
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.

View File

@@ -1,4 +1,4 @@
# $NetBSD: UnixWare.mk,v 1.33 2013/04/28 12:53:56 obache Exp $
# $NetBSD: UnixWare.mk,v 1.34 2016/03/10 16:58:19 jperkin Exp $
#
# Variable definitions for the UnixWare 7 operating system.
@@ -51,13 +51,6 @@ _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
#
_USE_RPATH= yes # add rpath to LDFLAGS
# flags passed to the linker to extract all symbols from static archives.
# this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
# ld is not currently supported.
# XXX is this needed for UnixWare?
_OPSYS_WHOLE_ARCHIVE_FLAG=
_OPSYS_NO_WHOLE_ARCHIVE_FLAG=
# UnixWare has /usr/include/iconv.h, but it's not GNU iconv, so mark it
# incompatible.
_INCOMPAT_ICONV= UnixWare-*-*