1 Star 0 Fork 12

zhangwenlong01/jffi

forked from src-openEuler/jffi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jffi-fix-compilation-flags.patch 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
jeff200902 提交于 2020-08-04 15:31 . Package init
--- jni/GNUmakefile.orig 2015-03-02 23:35:21.000000000 +0200
+++ jni/GNUmakefile 2015-04-30 18:16:46.270806239 +0300
@@ -66,9 +66,9 @@ OFLAGS = -O2 $(JFLAGS)
# MacOS headers aren't completely warning free, so turn them off
WERROR = -Werror
ifneq ($(OS),darwin)
- WFLAGS += -Wundef $(WERROR)
+ WFLAGS += -Wundef
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
@@ -76,11 +76,13 @@ 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
ifeq ($(OS), win64)
--- pom.xml.orig 2017-07-18 13:13:49.051730126 +0100
+++ pom.xml 2017-07-18 13:27:54.899479303 +0100
@@ -201,6 +201,10 @@
<include name="**/*.jar" />
</fileset>
</unzip>
+ <exec executable="/bin/sh">
+ <arg value="-c"/>
+ <arg value="strip -s ${project.build.directory}/jni/*/*.so"/>
+ </exec>
</tasks>
</configuration>
</execution>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangwenlong01/jffi.git
git@gitee.com:zhangwenlong01/jffi.git
zhangwenlong01
jffi
jffi
master

搜索帮助