Files
gerbera/gerbera-cmake-pie.patch
Paolo Stivanin f95bda0828 - Use --preset to build standard release build with NPUPNP
- BuildRequires minimum versions supported by upstream (rather than
  recommended versions) to allow building on older Leap versions
- Don't cap versions of external libraries to tested ones upstream
  as this doesn't work well with a rolling release (like Tumbleweed)
  and isn't needed for stable Leap releases
- Fix rpmlint errors/warnings
  + add gerbera.rpmlintrc
  + add gerbera-cmake-pie.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/gerbera?expand=0&rev=81
2025-11-03 07:41:30 +00:00

15 lines
709 B
Diff

diff -purN gerbera-2.6.1.orig/CMakeLists.txt gerbera-2.6.1/CMakeLists.txt
--- gerbera-2.6.1.orig/CMakeLists.txt 2025-08-15 15:41:10.000000000 +0200
+++ gerbera-2.6.1/CMakeLists.txt 2025-11-02 17:45:39.166202203 +0100
@@ -47,6 +47,10 @@ set(CMAKE_INSTALL_BINDIR bin)
set(CMAKE_INSTALL_DATADIR share/gerbera)
set(CMAKE_INSTALL_MANDIR share/man/man1)
+# build all executables as PIE
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
+
option(WITH_NPUPNP "Use npupnp instead of libupnp" OFF)
option(WITH_MAGIC "Use libmagic to identify file mime types" ON)
option(WITH_MYSQL "Store media information in MySQL DB" OFF)