commit b7d31f5b6c1fb4d87f5ed541a2d5bcd4e88707a9
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jul 25 06:03:17 2016 +0100
Fix another "relocation R_X86_64_PC32 against undefined symbol recompile with
-fPIC"
lxdream-0.9.1-implicit.patch | 21 +++++++++++++++++++++
lxdream.spec | 7 ++++++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/lxdream-0.9.1-implicit.patch b/lxdream-0.9.1-implicit.patch
index 4c658f9..910d04e 100644
--- a/lxdream-0.9.1-implicit.patch
+++ b/lxdream-0.9.1-implicit.patch
@@ -1,6 +1,27 @@
+Fix "relocation R_X86_64_PC32 against undefined symbol `uncompress' can not be
used
+ when making a shared object; recompile with -fPIC" by not overwrite CFLAGS.
diff -up lxdream-0.9.1/configure.implicit lxdream-0.9.1/configure
--- lxdream-0.9.1/configure.implicit 2009-06-28 12:29:06.000000000 +0200
+++ lxdream-0.9.1/configure 2012-02-11 00:21:17.719647658 +0100
+@@ -7780,15 +7780,15 @@ _ACEOF
+
+ fi
+
+-CFLAGS="-g -fexceptions"
+-OBJCFLAGS="-g -fexceptions"
++CFLAGS+=" -g -fexceptions"
++OBJCFLAGS+=" -g -fexceptions"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_EXCEPTIONS 1
+ _ACEOF
+
+
+-STDCFLAG="-std=c99"
++STDCFLAG+=" -std=c99"
+
+ _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
+ _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
@@ -9116,6 +9116,8 @@ _ACEOF
fi
diff --git a/lxdream.spec b/lxdream.spec
index 4810b82..c8e385b 100644
--- a/lxdream.spec
+++ b/lxdream.spec
@@ -1,6 +1,6 @@
Name: lxdream
Version: 0.9.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Sega Dreamcast emulator
License: GPLv2+
URL:
http://www.lxdream.org
@@ -17,6 +17,7 @@ BuildRequires: lirc-devel
BuildRequires: perl(Pod::Man)
BuildRequires: pulseaudio-libs-devel
BuildRequires: SDL-devel
+BuildRequires: zlib-devel
# there should be a {ix86} instead of i386 in the ExclusiveArch line but
# that would make plague build the package for athlon, i386, i586 and i686 :-/
ExclusiveArch: i686 x86_64
@@ -65,6 +66,10 @@ desktop-file-validate
$RPM_BUILD_ROOT%{_datadir}/applications/lxdream.desktop
%changelog
+* Mon Jul 25 2016 Sérgio Basto <sergio(a)serjux.com> - 0.9.1-10
+- Fix another "relocation R_X86_64_PC32 against undefined symbol recompile with
+ -fPIC"
+
* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 0.9.1-9
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild