Fixup PIE gcc flags
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Thu, 10 Aug 2017 12:33:44 +0000 (14:33 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 16 Oct 2017 13:05:33 +0000 (15:05 +0200)
Missing PIE compiler flag caused build to fail on non-i686.

Change-Id: I76def0feae139f0ba8b229f10aea2cdbe06cdde1
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
packaging/krb5.spec

index 9f8e843..df002ed 100644 (file)
@@ -66,7 +66,7 @@ cp %{SOURCE1001} .
 rm -f src/lib/krb5/krb/deltat.c
 cd src
 %{?asan:LDFLAGS+=" -ldl -pthread "}
-CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPIC -fgnu89-inline -Wl,-pie " \
+CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPIC -fgnu89-inline -Wl,-pie -pie" \
 ./configure \
        --host=%{_host} --build=%{_build} \
        --prefix=/usr/lib/mit \