Hello!
I intend to commit the following diff to devel/qmake in a day or
two. It will make all Qt (KDE?) compile with -fpic instead of -fPIC
on all arches except sparc64.
It will also ensure the -DPIC flag everywhere, which is customary
for shlib compiling (see bsd.lib.mk).
Let me know, if you find this change objectionable. Thanks!
Yours,
-mi
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/qmake/Makefile,v
retrieving revision 1.15
diff -U2 -r1.15 Makefile
--- Makefile 5 Nov 2005 06:27:17 -0000 1.15
+++ Makefile 12 Feb 2006 17:41:45 -0000
@@ -8,4 +8,5 @@
PORTNAME= qmake
PORTVERSION= 3.3.5
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_QT}
@@ -50,5 +51,6 @@
-e 's|-pthread -D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
-e 's|-pthread|${PTHREAD_LIBS}|' \
- ${WRKSRC}/../mkspecs/freebsd-g++/qmake.conf
+ -e 's,-fPIC,-DPIC ${ARCH:S/sparc64/-fPIC/:C/^[^-].*/-fpic/},' \
+ ${WRKSRC}/../mkspecs/freebsd-*/qmake.conf
@${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd