Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 10:43:59 GMT
From:      Matthieu Volat <mazhe@alkumuna.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185994: [PATCH] net/liveMedia need -fPIC/-fpic in CXXFLAGS too
Message-ID:  <201401221043.s0MAhxv7086698@oldred.freebsd.org>
Resent-Message-ID: <201401221050.s0MAo1xk025911@freefall.freebsd.org>

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

>Number:         185994
>Category:       ports
>Synopsis:       [PATCH] net/liveMedia need -fPIC/-fpic in CXXFLAGS too
>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:   Wed Jan 22 10:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Matthieu Volat
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD freedom.alkumuna.eu 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
net/liveMedia build do not specify -fPIC/-fpic flags for C++ sources, so build (or linking, to be precise) will fail.
>How-To-Repeat:
make -C /usr/ports/net/liveMedia build

>Fix:
Here's the trivial patch:

--- Makefile.orig       2014-01-22 11:38:38.000000000 +0100
+++ Makefile    2014-01-22 11:39:14.000000000 +0100
@@ -30,8 +30,10 @@
 
 .if ${ARCH} == "amd64" || ${ARCH} == "ia64"
 CFLAGS+=       -fPIC
+CXXFLAGS+=     -fPIC
 .else
 CFLAGS+=       -fpic
+CXXFLAGS+=     -fpic
 .endif
 
 .if ${ARCH} == "sparc64"

>Release-Note:
>Audit-Trail:
>Unformatted:



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