ports/122899: [PATCH] audio/liba52: powerpc build requires -fPIC
Peter Grehan
grehan at FreeBSD.org
Sat Apr 19 07:20:01 UTC 2008
>Number: 122899
>Category: ports
>Synopsis: [PATCH] audio/liba52: powerpc build requires -fPIC
>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: Sat Apr 19 07:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Peter Grehan
>Release: 7.0-RELEASE
>Organization:
>Environment:
FreeBSD g4.hq.netapp.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Mon Feb 25 11:12:44 UTC 2008 root at xserve.xcllnt.net:/usr/obj/usr/src/sys/GENERIC powerpc
>Description:
Powerpc is similar to amd64 in that it requires -fPIC when building shared libs
>How-To-Repeat:
Build the port, and run an objdump on the shared lib. The infamous relocation
type of 10 will show up. That's actually non-relocatable and will be rejected
by the run-time linker when the library is used.
>Fix:
--- Makefile.orig 2008-04-19 03:09:16.000000000 -0700
+++ Makefile 2008-04-19 03:10:17.000000000 -0700
@@ -32,7 +32,7 @@
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
+.if ${ARCH} == "amd64" || ${ARCH} == "powerpc"
CFLAGS+= -fPIC
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list