From be63b9b0c9de7a321738690450e85b28759f90845e454829f82555dbf24e3ab8 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 4 May 2021 11:31:06 +0000 Subject: [PATCH] Accepting request 890323 from home:mgerstner:branches:devel:languages:tcl - fix previous change regarding PIE linking. Passing SHLIB_CFLAGS="-shared" causes /usr/bin/expect to become a shared library that SEGFAULTs upon execution. Instead use SHLIB_LD to pass -shared only to shared library linking. OBS-URL: https://build.opensuse.org/request/show/890323 OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/expect?expand=0&rev=27 --- expect.changes | 8 ++++++++ expect.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/expect.changes b/expect.changes index 45c281b..85bb4fa 100644 --- a/expect.changes +++ b/expect.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue May 4 11:02:42 UTC 2021 - Matthias Gerstner + +- fix previous change regarding PIE linking. Passing SHLIB_CFLAGS="-shared" + causes /usr/bin/expect to become a shared library that SEGFAULTs upon + execution. Instead use SHLIB_LD to pass -shared only to shared library + linking. + ------------------------------------------------------------------- Wed Apr 21 13:13:28 UTC 2021 - Matthias Gerstner diff --git a/expect.spec b/expect.spec index af317b0..4f7c274 100644 --- a/expect.spec +++ b/expect.spec @@ -66,7 +66,7 @@ autoreconf --with-tk=no_tk \ --with-tclinclude=%_includedir \ --enable-shared -make SHLIB_CFLAGS="-shared" %{?_smp_mflags} all pkglibdir=%_libdir/tcl/%name%version +make SHLIB_LD="gcc -shared" %{?_smp_mflags} all pkglibdir=%_libdir/tcl/%name%version %check make %{?_smp_mflags} test