Make sure object files linked into a shared library get compiled with -fPIC.

Matches what is done on Linux.

ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/java/tanukiwrapper/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile    7 May 2014 15:42:16 -0000       1.3
+++ Makefile    16 May 2015 10:26:55 -0000
@@ -7,7 +7,7 @@ COMMENT=        Tanuki Java Service Wrapper
 SVN_REV=       1780
 DISTNAME=      wrapper-code-${SVN_REV}-trunk
 PKGNAME=       java-tanukiwrapper-3.5.19.1
-REVISION=      1
+REVISION=      2
 CATEGORIES=    java
 
 HOMEPAGE=      http://wrapper.tanukisoftware.com/
Index: patches/patch-src_c_Makefile-openbsd-x86-64_gmake
===================================================================
RCS file: patches/patch-src_c_Makefile-openbsd-x86-64_gmake
diff -N patches/patch-src_c_Makefile-openbsd-x86-64_gmake
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_c_Makefile-openbsd-x86-64_gmake   16 May 2015 10:26:55 
-0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/c/Makefile-openbsd-x86-64.gmake.orig   Sat May 16 12:23:42 2015
++++ src/c/Makefile-openbsd-x86-64.gmake        Sat May 16 12:25:18 2015
+@@ -7,7 +7,7 @@
+ # license agreement you entered into with Tanuki Software.
+ # http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
+ 
+-CC = ${CC} -Wall -pedantic -DOPENBSD -DJSW64 -I${LOCALBASE}/include 
-L${LOCALBASE}/lib -liconv -DUNICODE -D_UNICODE
++CC = ${CC} -fPIC -Wall -pedantic -DOPENBSD -DJSW64 -I${LOCALBASE}/include 
-L${LOCALBASE}/lib -liconv -DUNICODE -D_UNICODE
+ 
+ INCLUDE=$(JAVA_HOME)/include
+ 

Reply via email to