commit 3082f3cdaf7f90e5ad6267029b057ee8a5820eec
Author: Michael Cronenworth <mike(a)cchtml.com>
Date: Wed Jan 24 14:26:04 2018 -0600
Disable linker option for shared library definitions
Fedora 28 has just enabled "-Wl,-z,defs" for x86 32-bit, which is a
problem with shared libraries that perform dlopen() calls.
Signed-off-by: Michael Cronenworth <mike(a)cchtml.com>
kodi.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kodi.spec b/kodi.spec
index e29a8e2..809eea5 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -10,7 +10,7 @@
# * dvd - Include optical drive support and DVD decryption
#
# Default: Do not ship DVD decryption for legal reasons
-%bcond_with dvd 0
+%bcond_with dvd
Name: kodi
Version: 17.6
@@ -324,7 +324,7 @@ chmod +x bootstrap
%endif
CFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/
-D__STDC_CONSTANT_MACROS" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/
-D__STDC_CONSTANT_MACROS" \
-LDFLAGS="$RPM_LD_FLAGS -fPIC" \
+LDFLAGS="`echo "$RPM_LD_FLAGS -fPIC" | sed -e
's/-Wl,-z,defs//'`" \
ASFLAGS=-fPIC
make %{?_smp_mflags} V=1