diff options
Diffstat (limited to 'x11/py-qt3-sip')
-rw-r--r-- | x11/py-qt3-sip/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/x11/py-qt3-sip/Makefile b/x11/py-qt3-sip/Makefile index 5984fde1b76..3c057b47498 100644 --- a/x11/py-qt3-sip/Makefile +++ b/x11/py-qt3-sip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2005/06/01 18:03:30 jlam Exp $ +# $NetBSD: Makefile,v 1.17 2005/07/01 01:27:09 reed Exp $ # DISTNAME= sip-4.2.1 @@ -28,8 +28,20 @@ PYTHON_VERSIONS_ACCEPTED= 24 23 PY_PATCHPLIST= yes PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Darwin" +CONFIGURE_ARGS+= CFLAGS_SHLIB=-fno-common +CONFIGURE_ARGS+= LFLAGS_PLUGIN="-bundle -flat_namespace -undefined suppress" +.else CONFIGURE_ARGS+= CFLAGS_SHLIB=-fPIC -CONFIGURE_ARGS+= LFLAGS_SHLIB=-shared +.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" +.else +CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared" +.endif +.endif SUBST_CLASSES+= pyversfx SUBST_STAGE.pyversfx= pre-configure |