Centralize per-package hacks for lack of -rpath on Darwin/powerpc.

This commit is contained in:
nia 2023-11-07 13:19:47 +00:00
parent a06204cf8c
commit e53fcb1898
4 changed files with 9 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.24 2023/11/07 10:51:10 wiz Exp $
# $NetBSD: Makefile.common,v 1.25 2023/11/07 13:19:47 nia Exp $
#
# used by devel/gettext/Makefile
# used by devel/gettext-asprintf/Makefile
@ -20,10 +20,6 @@ USE_LIBTOOL= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # several sub-configures
# Darwin does not support RPATH. It seems to attempt to force one anyway
# with earlier versions such as 10.4, resulting in a build error.
CONFIGURE_ARGS.Darwin+= --disable-rpath
.include "../../mk/bsd.fast.prefs.mk"
# There is a bug in the 10.4 SDK that causes struct __darwin_ucontext

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2023/11/06 11:38:57 nia Exp $
# $NetBSD: Makefile,v 1.17 2023/11/07 13:19:47 nia Exp $
DISTNAME= libidn2-2.3.4
CATEGORIES= devel
@ -16,8 +16,6 @@ PKGCONFIG_OVERRIDE+= libidn2.pc.in
INFO_FILES= yes
TEST_TARGET= check
CONFIGURE_ARGS.Darwin+= --disable-rpath
# XXX: Kludge to avoid uncoditionally pick up some gtkdoc-* tools if gtk-doc
# XXX: package is installed and then fails in the installation phase.
CONFIGURE_ENV+= ac_cv_prog_GTKDOC_CHECK=

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.78 2023/11/07 09:17:20 wiz Exp $
# $NetBSD: Makefile,v 1.79 2023/11/07 13:19:47 nia Exp $
DISTNAME= gawk-5.3.0
CATEGORIES= lang
@ -35,11 +35,6 @@ CHECK_PORTABILITY_SKIP+= doc/it/gawktexi.in
CFLAGS+= -Dvm_region=vm_region_64
.endif
.if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc}
# ld does not have -rpath
CONFIGURE_ARGS+= --disable-rpath
.endif
PLIST_VARS+= extension
.if "${OPSYS}" != "MirBSD"
PLIST.extension= yes

View File

@ -1,4 +1,4 @@
# $NetBSD: gnu-configure.mk,v 1.29 2022/04/04 11:23:06 riastradh Exp $
# $NetBSD: gnu-configure.mk,v 1.30 2023/11/07 13:19:47 nia Exp $
#
# Package-settable variables:
#
@ -59,6 +59,11 @@ CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN_CMD:sh}
CONFIGURE_ENV+= lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$$'
.endif
.if ${MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc}
# ld does not have -rpath
CONFIGURE_ARGS+= --disable-rpath
.endif
GNU_CONFIGURE_PREFIX?= ${PREFIX}
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX:Q}