diff options
author | wiz <wiz@pkgsrc.org> | 2009-06-30 15:33:06 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2009-06-30 15:33:06 +0000 |
commit | 4424ec6b3338a0ab30edd59926231e41c7f92863 (patch) | |
tree | 4c463605b25aa3d57bde4e87f945efc44bceba04 /x11/py-qt4 | |
parent | b6527f382f7a7c82d1c2cc09856b303660a6da21 (diff) | |
download | pkgsrc-4424ec6b3338a0ab30edd59926231e41c7f92863.tar.gz |
Hack around the -fPIC compilation problem on amd64 by sed(1)ing
-fPIC in the necessary Makefiles.
Diffstat (limited to 'x11/py-qt4')
-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 |