b85ff8
From 52ef407584801916d6e60c4f4c5411023b5ac369 Mon Sep 17 00:00:00 2001
b85ff8
From: Michael Simacek <msimacek@redhat.com>
b85ff8
Date: Mon, 16 Jan 2017 11:29:06 +0100
b85ff8
Subject: [PATCH 1/6] Adapt build
b85ff8
b85ff8
---
b85ff8
 native/Makefile | 3 +--
b85ff8
 1 file changed, 1 insertion(+), 2 deletions(-)
b85ff8
b85ff8
diff --git a/native/Makefile b/native/Makefile
b85ff8
index 6f9ad25..3712a9e 100644
b85ff8
--- a/native/Makefile
b85ff8
+++ b/native/Makefile
b85ff8
@@ -97,7 +97,7 @@ CDEFINES=-D_REENTRANT
b85ff8
 PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
b85ff8
 CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
b85ff8
        -DJNA_JNI_VERSION='"$(JNA_JNI_VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
b85ff8
-LDFLAGS=-o $@ -shared
b85ff8
+LDFLAGS=$(RPM_LD_FLAGS) -o $@ -shared
b85ff8
 ifeq ($(DYNAMIC_LIBFFI),true)
b85ff8
 CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
b85ff8
 LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
b85ff8
@@ -455,7 +455,6 @@ $(BUILD)/$(JNA_JNI_VERSION).stamp:
b85ff8
 
b85ff8
 $(LIBRARY): $(JNIDISPATCH_OBJS) $(FFI_LIB)
b85ff8
 	$(LD) $(LDFLAGS) $(JNIDISPATCH_OBJS) $(FFI_LIB) $(LIBS)
b85ff8
-	$(STRIP) $@
b85ff8
 
b85ff8
 $(TESTLIB): $(BUILD)/testlib.o
b85ff8
 	$(LD) $(LDFLAGS) $< $(LIBS)
b85ff8
-- 
b85ff8
2.14.3
b85ff8