From bf3c4131752b08d47ddd9c22bd21cc96a16ae770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 10 Nov 2020 15:17:07 +0100 Subject: [PATCH] spec: Pass -pie via LDFLAGS Makes the clang build pass --- ppp.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppp.spec b/ppp.spec index cdc1456..cb0a87a 100644 --- a/ppp.spec +++ b/ppp.spec @@ -94,8 +94,8 @@ tar -xJf %{SOURCE12} %build export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing" %configure -%{make_build} LDFLAGS="%{?build_ldflags}" -%{make_build} -C ppp-watch LDFLAGS="%{?build_ldflags}" +%{make_build} LDFLAGS="%{?build_ldflags} -pie" +%{make_build} -C ppp-watch LDFLAGS="%{?build_ldflags} -pie" %install make INSTROOT=%{buildroot} install install-etcppp