aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2004-12-30 05:51:42 +0800
committerlofi <lofi@FreeBSD.org>2004-12-30 05:51:42 +0800
commit3b2903307560b183c9f03eaecd428afeee443da7 (patch)
treed07dc551ad78358ae5427557365a310baee2b7e0
parent92a0c74046500f64bf26a40f2ead938fac36291c (diff)
downloadfreebsd-ports-gnome-3b2903307560b183c9f03eaecd428afeee443da7.tar.gz
freebsd-ports-gnome-3b2903307560b183c9f03eaecd428afeee443da7.tar.zst
freebsd-ports-gnome-3b2903307560b183c9f03eaecd428afeee443da7.zip
Globally disable -Wl,-as-needed for all users of USE_KDELIBS_VER. Binaries
linked with -pthread and -Wl,as-needed will have all references to libphthread stripped (reason/reasoning unknown), causing funny runtime errors when Qt decides to fire up a thread.
-rw-r--r--Mk/bsd.kde.mk3
-rw-r--r--Mk/bsd.kde4.mk3
2 files changed, 4 insertions, 2 deletions
diff --git a/Mk/bsd.kde.mk b/Mk/bsd.kde.mk
index 904cb32a60d8..4aa85b4bbc11 100644
--- a/Mk/bsd.kde.mk
+++ b/Mk/bsd.kde.mk
@@ -63,7 +63,8 @@ CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
.if !defined(_NO_KDE_CONFTARGET_HACK)
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
- --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
+ --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
+ --disable-as-needed
.endif
.if ${USE_KDELIBS_VER} == CVS
diff --git a/Mk/bsd.kde4.mk b/Mk/bsd.kde4.mk
index 904cb32a60d8..4aa85b4bbc11 100644
--- a/Mk/bsd.kde4.mk
+++ b/Mk/bsd.kde4.mk
@@ -63,7 +63,8 @@ CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
.if !defined(_NO_KDE_CONFTARGET_HACK)
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
- --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
+ --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
+ --disable-as-needed
.endif
.if ${USE_KDELIBS_VER} == CVS