ports/128033: [ patch ] net/xmlrpc-c: libraries should be compiled with -fPIC
Roman Bogorodskiy
novel at FreeBSD.org
Sun Oct 12 18:20:03 UTC 2008
>Number: 128033
>Category: ports
>Synopsis: [ patch ] net/xmlrpc-c: libraries should be compiled with -fPIC
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 12 18:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Roman Bogorodskiy
>Release: FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
>Description:
It's not possible to link with static xmlrpc-c libraries - linker
complains that they should be build with -fPIC. The attached patch
obtained from gentoo portage fixes the problem.
PS The thing I cannot figure out: why does it build only static
version of C++ libraries?
>How-To-Repeat:
>Fix:
--- xmlrpc-c-pic.diff begins here ---
Index: files/patch-src-cpp-Makefile
===================================================================
RCS file: files/patch-src-cpp-Makefile
diff -N files/patch-src-cpp-Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-src-cpp-Makefile 12 Oct 2008 18:05:15 -0000
@@ -0,0 +1,11 @@
+--- src/cpp/Makefile.orig 2008-10-12 21:53:42.000000000 +0400
++++ src/cpp/Makefile 2008-10-12 21:53:51.000000000 +0400
+@@ -139,7 +139,7 @@
+ # RULES TO COMPILE OBJECT MODULES FOR LIBRARIES
+ #-----------------------------------------------------------------------------
+
+-CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
++CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) -fPIC
+
+ XmlRpcCpp.o:%.o:%.cpp
+ $(CXX) -c $(BASIC_INCLUDES) $(CXXFLAGS) $<
--- xmlrpc-c-pic.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list