Projects
Mega:24.09
jffi
_service:tar_scm:jffi-fix-compilation-flags.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:jffi-fix-compilation-flags.patch of Package jffi
--- jni/GNUmakefile | 13 ++++++++----- pom.xml | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/jni/GNUmakefile b/jni/GNUmakefile index 8ac84a6..bca41fa 100755 --- a/jni/GNUmakefile +++ b/jni/GNUmakefile @@ -66,10 +66,10 @@ OFLAGS = -O2 $(JFLAGS) WERROR = -Werror ifneq ($(OS),darwin) ifneq ($(OS),aix) - WFLAGS += -Wundef $(WERROR) + WFLAGS += -Wundef endif endif -WFLAGS += -W -Wall -Wno-unused -Wno-parentheses -Wno-unused-parameter +WFLAGS += -W -Wall -Wno-parentheses -Wno-unused-parameter PICFLAGS = -fPIC SOFLAGS = # Filled in for each OS specifically FFI_MMAP_EXEC = -DFFI_MMAP_EXEC_WRIT @@ -77,12 +77,15 @@ FFI_MMAP_EXEC = -DFFI_MMAP_EXEC_WRIT FFI_CC = $(CCACHE) $(CC) FFI_LD = $(LD) FFI_CFLAGS = $(FFI_MMAP_EXEC) $(OFLAGS) -STRIP ?= strip -S +STRIP ?= /bin/true + +RPMFLAGS=$(shell rpm --eval %optflags) JDK_INCLUDES = -I"$(JDK_HOME)/include" -I"$(JDK_HOME)/include/$(OS)" IFLAGS = -I"$(BUILD_DIR)" -I"$(BUILD_DIR)"/jni -I$(SRC_DIR) -I"$(JFFI_SRC_DIR)" -CFLAGS += $(OFLAGS) $(WFLAGS) $(IFLAGS) $(PICFLAGS) $(JDK_INCLUDES) $(LIBFFI_CFLAGS) +CFLAGS += $(OFLAGS) $(WFLAGS) $(IFLAGS) $(PICFLAGS) $(JDK_INCLUDES) $(LIBFFI_CFLAGS) $(RPMFLAGS) CFLAGS += -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE +LDFLAGS += $(LIBFFI_LIBS) ifeq ($(OS), win64) override CPU = x86_64 diff --git a/pom.xml b/pom.xml index 63a2063..6b37da5 100644 --- a/pom.xml +++ b/pom.xml @@ -291,6 +291,10 @@ <include name="**/*.jar" /> </fileset> </unzip> + <exec executable="/bin/sh"> + <arg value="-c"/> + <arg value="strip -s ${project.build.directory}/jni/*/*.so"/> + </exec> </target> </configuration> </execution> -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2