[vlc-devel] [PATCH] contrib: fluidlite: Add patch to enable PIC
Marvin Scholz
epirat07 at gmail.com
Fri Oct 11 20:34:19 CEST 2019
Fixes linking issues on x86 Android
---
contrib/src/fluidlite/add-pic.diff | 11 +++++++++++
contrib/src/fluidlite/rules.mak | 1 +
2 files changed, 12 insertions(+)
create mode 100644 contrib/src/fluidlite/add-pic.diff
diff --git a/contrib/src/fluidlite/add-pic.diff b/contrib/src/fluidlite/add-pic.diff
new file mode 100644
index 0000000000..b01f7efd72
--- /dev/null
+++ b/contrib/src/fluidlite/add-pic.diff
@@ -0,0 +1,11 @@
+--- ./CMakeLists.txt.orig 2019-10-11 19:18:01.000000000 +0200
++++ ./CMakeLists.txt 2019-10-11 19:18:04.000000000 +0200
+@@ -4,6 +4,8 @@ include(FindPkgConfig)
+
+ project(fluidlite)
+
++set(CMAKE_POSITION_INDEPENDENT_CODE ON)
++
+ list(APPEND HEADERS
+ include/fluidlite.h
+ )
diff --git a/contrib/src/fluidlite/rules.mak b/contrib/src/fluidlite/rules.mak
index 4ab3cc6029..e893a46c1c 100644
--- a/contrib/src/fluidlite/rules.mak
+++ b/contrib/src/fluidlite/rules.mak
@@ -22,6 +22,7 @@ DEPS_fluidlite = ogg $(DEPS_ogg)
fluidlite: fluidlite-$(FLUID_HASH).tar.xz .sum-fluidlite
$(UNPACK)
+ $(APPLY) $(SRC)/fluidlite/add-pic.diff
$(MOVE)
.fluidlite: fluidlite toolchain.cmake
--
2.20.1 (Apple Git-117)
More information about the vlc-devel
mailing list