Date: Mon, 29 Jan 2007 13:44:34 GMT From: Rene Ladan<r.c.ladan@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/108515: devel/libusb : fix build on amd64 Message-ID: <200701291344.l0TDiXOf005316@www.freebsd.org> Resent-Message-ID: <200701291350.l0TDoFN3060192@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 108515 >Category: ports >Synopsis: devel/libusb : fix build on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jan 29 13:50:15 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rene Ladan >Release: 7.0 CURRENT i386 >Organization: >Environment: FreeBSD 7.0 CURRENT i386 2007-01-25 >Description: On amd64 systems, the libraries need to be linked with the -fPIC option, as stated at http://pointyhat.freebsd.org/errorlogs/amd64-7-latest/libusb-0.1.12_1.log Add this flag to CFLAGS in the Makefile >How-To-Repeat: Try to compile the port on an amd64 system. >Fix: Patch attached with submission follows: --- /usr/ports/devel/libusb/Makefile Sun Dec 17 01:54:01 2006 +++ Makefile Mon Jan 29 14:30:17 2007 @@ -33,6 +33,7 @@ USE_LDCONFIG= yes GNU_CONFIGURE= yes +CFLAGS+= -fPIC post-patch: @${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' ${WRKSRC}/configure >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701291344.l0TDiXOf005316>