libpcap: sparc needs -fPIC as sparc64/microblaze
authorWaldemar Brodkorb <wbx@openadk.org>
Sun, 26 Feb 2017 10:51:27 +0000 (11:51 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Feb 2017 13:26:52 +0000 (14:26 +0100)
Fixes nmap build for sparc.

Fixes:
 http://autobuild.buildroot.net/results/8e476939f1daaa20c316dbd0508fa343034f2397

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libpcap/libpcap.mk

index 258308795379dc77d7cc53fa67f3757149897523..505e2abe3ddfb96d386b1ce0f490884abf3d13ab 100644 (file)
@@ -53,8 +53,8 @@ else
 LIBPCAP_CONF_OPTS += --without-libnl
 endif
 
-# microblaze/sparc64 need -fPIC instead of -fpic
-ifeq ($(BR2_microblaze)$(BR2_sparc64),y)
+# microblaze/sparc/sparc64 need -fPIC instead of -fpic
+ifeq ($(BR2_microblaze)$(BR2_sparc)$(BR2_sparc64),y)
 LIBPCAP_CFLAGS += -fPIC
 endif