Date: Fri, 21 Aug 2009 03:40:37 GMT From: Max Brazhnikov <makc@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/138009: math/muparser: fix linking with muparser on amd64 Message-ID: <200908210340.n7L3ebg0043060@www.freebsd.org> Resent-Message-ID: <200908210350.n7L3o06J024543@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138009 >Category: ports >Synopsis: math/muparser: fix linking with muparser on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 21 03:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Max Brazhnikov >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: FreeBSD luna.dio.ru 7.2-STABLE FreeBSD 7.2-STABLE #2: Fri Jun 26 21:57:33 MSD 2009 root@luna.dio.ru:/usr/obj/usr/freebsd/7/src/sys/LUNA i386 >Description: science/kst fails on amd64: /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=link c++ -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kstfit_general_levenberg_marquardt.la -rpath /usr/local/lib/kde3/kstplugins -module -avoid-version -module -no-undefined -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib kstfit_general_levenberg_marquardt.lo -lgsl -lgslcblas -lm -lmuparser -lm -Wl,-export-dynamic -L/usr/local/lib -ljpeg -L/usr/local/lib /usr/bin/ld: /usr/local/lib/libmuparser.a(muParser_lib_muParser.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/math/muparser/Makefile,v retrieving revision 1.8 diff -u -r1.8 Makefile --- Makefile 5 Feb 2009 07:37:03 -0000 1.8 +++ Makefile 20 Aug 2009 09:09:40 -0000 @@ -7,6 +7,7 @@ PORTNAME= muparser PORTVERSION= 1.30 +PORTREVISION= 1 CATEGORIES= math devel MASTER_SITES= SF DISTNAME= ${PORTNAME}_v130 @@ -28,6 +29,12 @@ WRKSRC= ${WRKDIR}/muparser +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" +CFLAGS+= -fPIC +.endif + # taken from audio/taglib post-patch: @${REINPLACE_CMD} -e "s#\$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#g" \ @@ -47,4 +54,4 @@ ${COPYTREE_SHARE} . ${EXAMPLESDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908210340.n7L3ebg0043060>