Hoist LDFLAGS_${ARCH} logic into bsd.port.mk

Approved by:	portmgr (bapt)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2018-09-18 14:48:48 +00:00
parent 1bc9d18ba6
commit 635e6cc2e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480026
4 changed files with 5 additions and 5 deletions

View File

@ -363,6 +363,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# CXXFLAGS_${ARCH}
# Append the cxxflags to CXXFLAGS only on the specified architecture
##
# LDFLAGS_${ARCH} Append the ldflags to LDFLAGS only on the specified architecture
# USE_SDL - If set, this port uses the sdl libraries.
# See bsd.sdl.mk for more information.
##
@ -2050,6 +2051,10 @@ ${lang}FLAGS+= ${${lang}FLAGS_${ARCH}}
.endif
.endfor
.if defined(LDFLAGS_${ARCH})
LDFLAGS+= ${LDFLAGS_${ARCH}}
.endif
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS?= #

View File

@ -31,7 +31,6 @@ CFLAGS_sparc64= -fPIC
# Fix the build for i386 when WITH_LLD_IS_LD is set
# https://bugs.freebsd.org/230210
LDFLAGS+= ${LDFLAGS_${ARCH}}
LDFLAGS_i386= -Wl,-z,notext
OPTIONS_DEFINE= DOCS

View File

@ -13,8 +13,6 @@ PLIST= ${.CURDIR}/pkg-plist
LIB_DEPENDS= #
USES= pathfix
LDFLAGS+= ${LDFLAGS_${ARCH}}
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= ASM OPENCL

View File

@ -23,9 +23,7 @@ USE_GNOME= gtk12
USE_LDCONFIG= yes
USE_XORG= sm x11 xxf86vm
LDFLAGS+= ${LDFLAGS_${ARCH}}
LDFLAGS_i386= -Wl,-znotext
CONFIGURE_ARGS= xmms_cv_newpcm_driver=yes --disable-static
CONFIGURE_ENV= INPUT_PLUGINS="${INPUT_PLUGINS}" \
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \