From 13e30de0b874b1ef4134be51287ee67d463385a5 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Mon, 31 Dec 2007 08:59:51 +0000 Subject: On non-i386 platforms, don't link with libsupc++, which cannot produce a shared object. Reported by: pointyhat via Pav --- devel/stlport/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'devel/stlport/Makefile') diff --git a/devel/stlport/Makefile b/devel/stlport/Makefile index a800fdfee2a0..a10c1c704948 100644 --- a/devel/stlport/Makefile +++ b/devel/stlport/Makefile @@ -62,8 +62,15 @@ pre-configure: ${WRKSRC}/../test/unit/gcc.mak .for lib in stlport stlportg stlportstlg ${REINPLACE_CMD} -e 's|-l${lib}$$|-l${lib}_${COMPILER}|' \ - ${PATCH_WRKSRC}/build/Makefiles/gmake/app/gcc.mak + ${PATCH_WRKSRC}/build/Makefiles/gmake/app/gcc.mak .endfor +.if ${ARCH} != i386 +. for sdir in app lib + # Cannot build a shared object with libsupc++ + ${REINPLACE_CMD} -e 's|-lsupc++|-lstdc++|' \ + ${PATCH_WRKSRC}/build/Makefiles/gmake/${sdir}/gcc.mak +. endfor +.endif do-install: ${MKDIR} "${PREFIX}/include/stlport/" -- cgit v1.2.3