From 9e60e68567d71e96028fc9bf108c835e27b4a603 Mon Sep 17 00:00:00 2001 From: Mayank Haarit Date: Tue, 23 Jan 2018 19:46:17 +0530 Subject: [PATCH] [Fix] Build issue for x86_64 architecture Description: This patch fixes build issue for x86_64 architecture. It adds -fPIC compile time flag in spec file. Change-Id: I14d9b4d430fbf1f1266b50a4939d76c82e65e22a Signed-off-by: Mayank Haarit --- packaging/iptables.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/iptables.spec b/packaging/iptables.spec index 4fcbb7b..edd3d30 100755 --- a/packaging/iptables.spec +++ b/packaging/iptables.spec @@ -1,7 +1,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities Version: 1.6.1 -Release: 1 +Release: 2 Group: System/Network Source: %{name}-%{version}.tar.gz URL: http://www.netfilter.org @@ -33,7 +33,7 @@ stable and may change with every new version. It is therefore unsupported. %build -export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -fno-strict-aliasing -Wno-unused-value" +export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -pie -fno-strict-aliasing -Wno-unused-value -fPIC" export LDFLAGS+=" -Wl,-z,relro,--as-needed" %autogen.sh -- 2.7.4