Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Apr 2008 07:12:49 GMT
From:      Peter Grehan <grehan@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122899: [PATCH] audio/liba52: powerpc build requires -fPIC
Message-ID:  <200804190712.m3J7Cnuq047922@freefall.freebsd.org>
Resent-Message-ID: <200804190720.m3J7K0M4049693@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804190712.m3J7Cnuq047922>