Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110761371
D17221.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D17221.diff
View Options
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -363,6 +363,7 @@
# 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.
##
@@ -2061,6 +2062,10 @@
.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?= #
Index: archivers/p7zip/Makefile
===================================================================
--- archivers/p7zip/Makefile
+++ archivers/p7zip/Makefile
@@ -31,7 +31,6 @@
# 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
Index: multimedia/libx264/Makefile
===================================================================
--- multimedia/libx264/Makefile
+++ multimedia/libx264/Makefile
@@ -13,8 +13,6 @@
LIB_DEPENDS= #
USES= pathfix
-
-LDFLAGS+= ${LDFLAGS_${ARCH}}
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= ASM OPENCL
Index: multimedia/xmms/Makefile
===================================================================
--- multimedia/xmms/Makefile
+++ multimedia/xmms/Makefile
@@ -23,9 +23,7 @@
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}" \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 6:53 PM (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16783132
Default Alt Text
D17221.diff (1 KB)
Attached To
Mode
D17221: Hoist LDFLAGS_${ARCH} into bsd.port.mk
Attached
Detach File
Event Timeline
Log In to Comment