ports/108515: devel/libusb : fix build on amd64
Rene Ladan
r.c.ladan at gmail.com
Mon Jan 29 13:50:18 UTC 2007
>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:
More information about the freebsd-ports-bugs
mailing list