[vlc-commits] contrib: openjpeg: build PIC
Sean McGovern
git at videolan.org
Thu Dec 7 19:39:27 CET 2017
vlc | branch: master | Sean McGovern <gseanmcg at gmail.com> | Thu Dec 7 06:31:00 2017 -0500| [a1dbb411ecd5717eff20f71335773b790231f046] | committer: Konstantin Pavlov
contrib: openjpeg: build PIC
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1dbb411ecd5717eff20f71335773b790231f046
---
contrib/src/openjpeg/pic.patch | 10 ++++++++++
contrib/src/openjpeg/rules.mak | 1 +
2 files changed, 11 insertions(+)
diff --git a/contrib/src/openjpeg/pic.patch b/contrib/src/openjpeg/pic.patch
new file mode 100644
index 0000000000..77e469aadb
--- /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 d7968c2f17..a966c0a21a 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)
More information about the vlc-commits
mailing list