pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Fix compilation on platforms where gcc does not produc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1153a37fff34
branches:  trunk
changeset: 524156:1153a37fff34
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jan 19 18:04:03 2007 +0000

description:
Fix compilation on platforms where gcc does not produce PIC objects by default.

diffstat:

 www/py-clearsilver/Makefile |  3 ++-
 x11/py-qt3-sip/Makefile     |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 4bd7b590ea51 -r 1153a37fff34 www/py-clearsilver/Makefile
--- a/www/py-clearsilver/Makefile       Fri Jan 19 16:28:15 2007 +0000
+++ b/www/py-clearsilver/Makefile       Fri Jan 19 18:04:03 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/10/24 11:06:40 drochner Exp $
+# $NetBSD: Makefile,v 1.9 2007/01/19 18:04:48 wiz Exp $
 
 PKGNAME=                       ${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=                   1
@@ -9,6 +9,7 @@
 CONFIGURE_ARGS+=               --with-python=${PYTHONBIN:Q}
 
 MAKE_FLAGS+=                   PYTHON_SITE=${LOCALBASE}/${PYSITELIB}
+CFLAGS+=                       -fPIC
 
 INSTALL_DIRS=                  ${WRKSRC}/python
 
diff -r 4bd7b590ea51 -r 1153a37fff34 x11/py-qt3-sip/Makefile
--- a/x11/py-qt3-sip/Makefile   Fri Jan 19 16:28:15 2007 +0000
+++ b/x11/py-qt3-sip/Makefile   Fri Jan 19 18:04:03 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2006/04/17 13:46:05 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2007/01/19 18:04:03 wiz Exp $
 #
 
 DISTNAME=      sip-4.3.2
@@ -37,6 +37,7 @@
 CONFIGURE_ARGS+=       LFLAGS_PLUGIN="-bundle -flat_namespace -undefined suppress"
 .else
 CONFIGURE_ARGS+=       CFLAGS_SHLIB=-fPIC
+CONFIGURE_ARGS+=       CXXFLAGS_SHLIB=-fPIC
 .if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc*)
 # gcc3 uses -mimpure-text to not pass -assert pure-text to the linker
 CONFIGURE_ARGS+=        LFLAGS_SHLIB="-shared -mimpure-text"



Home | Main Index | Thread Index | Old Index