[Fix] Build issue for x86_64 architecture 29/168029/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.024531 accepted/tizen/unified/20180126.042839 submit/tizen/20180124.050653 submit/tizen/20180125.065647 submit/tizen_5.0/20181101.000006
authorMayank Haarit <mayank.h@samsung.com>
Tue, 23 Jan 2018 14:16:17 +0000 (19:46 +0530)
committerMayank Haarit <mayank.h@samsung.com>
Tue, 23 Jan 2018 14:20:02 +0000 (19:50 +0530)
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 <mayank.h@samsung.com>
packaging/iptables.spec

index 4fcbb7b..edd3d30 100755 (executable)
@@ -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