[vlc-devel] [PATCH 2/4] contrib: openjpeg: build PIC
Sean McGovern
gseanmcg at gmail.com
Thu Dec 7 12:31:00 CET 2017
---
contrib/src/openjpeg/pic.patch | 10 ++++++++++
contrib/src/openjpeg/rules.mak | 1 +
2 files changed, 11 insertions(+)
create mode 100644 contrib/src/openjpeg/pic.patch
diff --git a/contrib/src/openjpeg/pic.patch b/contrib/src/openjpeg/pic.patch
new file mode 100644
index 0000000..77e469a
--- /dev/null
+++ b/contrib/src/openjpeg/pic.patch
@@ -0,0 +1,10 @@
+--- openjpeg/src/lib/openjp2/CMakeLists.txt.ORIG 2017-12-06 00:07:11.830711871 -0500
++++ openjpeg/src/lib/openjp2/CMakeLists.txt 2017-12-06 00:11:45.359362244 -0500
+@@ -1,5 +1,7 @@
+ include_regular_expression("^.*$")
+
++set(CMAKE_POSITION_INDEPENDENT_CODE ON)
++
+ #
+ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h
+ DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers)
diff --git a/contrib/src/openjpeg/rules.mak b/contrib/src/openjpeg/rules.mak
index d7968c2..a966c0a 100644
--- a/contrib/src/openjpeg/rules.mak
+++ b/contrib/src/openjpeg/rules.mak
@@ -16,6 +16,7 @@ ifdef HAVE_VISUALSTUDIO
endif
# $(APPLY) $(SRC)/openjpeg/restrict.patch
$(APPLY) $(SRC)/openjpeg/install.patch
+ $(APPLY) $(SRC)/openjpeg/pic.patch
$(call pkg_static,"./src/lib/openjp2/libopenjp2.pc.cmake.in")
$(MOVE)
--
2.7.4
More information about the vlc-devel
mailing list