diff --git a/sanlock-lto-disable-fpie.patch b/sanlock-lto-disable-fpie.patch new file mode 100644 index 0000000..7792450 --- /dev/null +++ b/sanlock-lto-disable-fpie.patch @@ -0,0 +1,16 @@ +Do not mix -fPIC and -FPIE, it is causing issue in LTO mode +(boo#1138836). + +diff --git a/python/setup.py b/python/setup.py +index 91311a8..91b8b2f 100644 +--- a/python/setup.py ++++ b/python/setup.py +@@ -11,7 +11,7 @@ sanlock = Extension(name='sanlock', + sources=['sanlock.c'], + include_dirs=['../src'], + library_dirs=['../src'], +- extra_link_args=['-fPIE', '-Wl,-z,relro,-z,now'], ++ extra_link_args=['-Wl,-z,relro,-z,now'], + libraries=sanlocklib) + + version = None diff --git a/sanlock.changes b/sanlock.changes index e3789fd..3efd626 100644 --- a/sanlock.changes +++ b/sanlock.changes @@ -1,3 +1,8 @@ +Mon Jun 24 14:49:15 UTC 2019 - Martin Liška + +- Add sanlock-lto-disable-fpie.patch in order to handle + boo#1138836. Extra -fPIE is stripped. + ------------------------------------------------------------------- Mon Jun 17 21:45:36 UTC 2019 - Jim Fehlig diff --git a/sanlock.spec b/sanlock.spec index 91e3f3e..9737219 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -44,6 +44,7 @@ Patch100: sanlock-SCHED_RESET_ON_FORK-undefined.patch Patch101: sanlock-python-prefix.patch Patch102: suse-systemd.patch Patch103: suse-no-date-time.patch +Patch104: sanlock-lto-disable-fpie.patch BuildRequires: %{python_module devel} BuildRequires: libaio-devel BuildRequires: pkgconfig @@ -129,6 +130,7 @@ common sanlock lockspace. %patch101 %patch102 -p1 %patch103 -p1 +%patch104 -p1 %build # upstream does not require configure