aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-11-30 16:00:48 +0800
committerTobias Kortkamp <tobik@FreeBSD.org>2019-11-30 16:00:48 +0800
commit8202ac49102fa73db34235f80662a7b83ce6bbc0 (patch)
tree7e425f9808d3c43db45c8e93b7db7c24b0d6f362 /audio
parent12f015586dca47805aaa9755235edb11537058ec (diff)
downloadfreebsd-ports-gnome-8202ac49102fa73db34235f80662a7b83ce6bbc0.tar.gz
freebsd-ports-gnome-8202ac49102fa73db34235f80662a7b83ce6bbc0.tar.zst
freebsd-ports-gnome-8202ac49102fa73db34235f80662a7b83ce6bbc0.zip
audio/openal-soft: Limit LLD_UNSAFE to FreeBSD 12.0 again
We can unbreak the build with lld on i386 on FreeBSD > 12.0 by passing -Wl,-z,notext to the linker. It should not make any difference on older releases. PR: 242307 Tested by: jbeich
Diffstat (limited to 'audio')
-rw-r--r--audio/openal-soft/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile
index 036c0176954d..2be6a9b33e63 100644
--- a/audio/openal-soft/Makefile
+++ b/audio/openal-soft/Makefile
@@ -23,7 +23,11 @@ CMAKE_ON= ALSOFT_BACKEND_WAVE ALSOFT_UTILS
# do not link with librt and libdl.
LDFLAGS+= -Wl,--as-needed
+LDFLAGS_i386= -Wl,-z,notext
+# XXX Drop after FreeBSD 12.0 EOL
+.if exists(/usr/lib/clang/6.0.1)
LLD_UNSAFE= yes
+.endif
PLIST_SUB= SOVERSION=${PORTVERSION}