pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/py-qt4 Hack around the -fPIC compilation problem o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a159434a821e
branches: trunk
changeset: 560840:a159434a821e
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Jun 30 15:33:06 2009 +0000
description:
Hack around the -fPIC compilation problem on amd64 by sed(1)ing
-fPIC in the necessary Makefiles.
diffstat:
x11/py-qt4/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 48d25876ac76 -r a159434a821e x11/py-qt4/Makefile
--- a/x11/py-qt4/Makefile Tue Jun 30 11:05:06 2009 +0000
+++ b/x11/py-qt4/Makefile Tue Jun 30 15:33:06 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2009/06/17 07:57:49 hasso Exp $
+# $NetBSD: Makefile,v 1.10 2009/06/30 15:33:06 wiz Exp $
#
PKGNAME= ${PYPKGPREFIX}-qt4-${PYQT_VERSION}
@@ -28,6 +28,14 @@
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
+# This is a hack. CPPFLAGS and CXXFLAGS from the environment are ignored,
+# however, so I don't know a better way to fix it.
+SUBST_CLASSES+= PIC
+SUBST_STAGE.PIC= post-configure
+SUBST_FILES.PIC= qpy/QtCore/Makefile qpy/QtGui/Makefile
+SUBST_SED.PIC= -e "s/CXXFLAGS =/CXXFLAGS = -fPIC/"
+SUBST_MESSAGE.PIC= Adding -fPIC to CXXFLAGS.
+
#SUBST_CLASSES+= pyversfx
#SUBST_STAGE.pyversfx= pre-configure
#SUBST_FILES.pyversfx= pyuic4/pyuic.sbf pylupdate4/pylupdate.sbf
Home |
Main Index |
Thread Index |
Old Index