diff options
author | wiz <wiz> | 2009-06-30 15:33:06 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-06-30 15:33:06 +0000 |
commit | b981d5f7d8063a96a4fcfac9fe7a6de571e0fa44 (patch) | |
tree | 4c463605b25aa3d57bde4e87f945efc44bceba04 | |
parent | fb3f4de18a19c46858932687ff1c3b762594cb37 (diff) | |
download | pkgsrc-b981d5f7d8063a96a4fcfac9fe7a6de571e0fa44.tar.gz |
Hack around the -fPIC compilation problem on amd64 by sed(1)ing
-fPIC in the necessary Makefiles.
-rw-r--r-- | x11/py-qt4/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/x11/py-qt4/Makefile b/x11/py-qt4/Makefile index a4cdf0b777c..bc55690efb7 100644 --- a/x11/py-qt4/Makefile +++ b/x11/py-qt4/Makefile @@ -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 @@ PYTHON_VERSIONS_ACCEPTED= 26 25 24 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 |