From 789892340c4a70844413e4dfceb7847cee7168820e820f219b6a2d68784bef8a Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Tue, 2 May 2023 06:11:04 +0000 Subject: [PATCH] Accepting request 1082945 from home:asvetter:branches:security:Stunnel - Fix build on SLE12: - add macro make_build OBS-URL: https://build.opensuse.org/request/show/1082945 OBS-URL: https://build.opensuse.org/package/show/security:Stunnel/stunnel?expand=0&rev=162 --- stunnel.changes | 6 ++++++ stunnel.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/stunnel.changes b/stunnel.changes index 8ac7f88..a051c7e 100644 --- a/stunnel.changes +++ b/stunnel.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 26 09:43:10 UTC 2023 - Andreas Vetter + +- Fix build on SLE12: + - add macro make_build + ------------------------------------------------------------------- Mon Apr 3 20:05:38 UTC 2023 - Dirk Müller diff --git a/stunnel.spec b/stunnel.spec index 2bc1e3b..5848588 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -83,6 +83,9 @@ sed -i 's/-m 1770//g' tools/Makefile.in %configure \ --disable-static \ --bindir=%{_sbindir} +%if 0%{?sle_version} < 150000 + %define make_build %{__make} -O %{?_smp_mflags} +%endif %make_build LDADD="-pie -Wl,-z,defs,-z,relro,-z,now" %install