You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
Index: build.xml |
|
--- build.xml.orig 2017-09-13 22:12:57.000000000 +0200 |
|
+++ build.xml 2017-09-30 00:32:13.930868000 +0200 |
|
@@ -387,7 +387,7 @@ |
|
<!-- Bundle native components with primary jar to facilitate |
|
easy distribution to common platforms. |
|
--> |
|
- <jar jarfile="${build}/${jar}" duplicate="preserve"> |
|
+ <jar jarfile="${build}/${jar}" duplicate="add" update="true"> |
|
<manifest> |
|
<attribute name="Main-Class" value="com.sun.jna.Native"/> |
|
<attribute name="Manifest-Version" value="1.0"/> |
|
Index: native/Makefile |
|
--- native/Makefile.orig 2017-09-13 22:12:57.000000000 +0200 |
|
+++ native/Makefile 2017-09-30 00:35:51.211560000 +0200 |
|
@@ -81,7 +81,7 @@ |
|
LIBSFX=.so |
|
ARSFX=.a |
|
JNISFX=$(LIBSFX) |
|
-CC=gcc |
|
+CC=gcc -fPIC |
|
LD=$(CC) |
|
LIBS= |
|
# Default to Sun recommendations for JNI compilation |
|
@@ -93,7 +93,7 @@ |
|
CFLAGS_EXTRA= |
|
COUT=-o $@ |
|
CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include |
|
-CDEFINES=-D_REENTRANT |
|
+CDEFINES=-D_REENTRANT -DNO_JAWT |
|
PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses |
|
CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \ |
|
-DJNA_JNI_VERSION='"$(JNA_JNI_VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
|
|
|