libpcap: fix sparc64 build, -fPIC required
authorWaldemar Brodkorb <wbx@openadk.org>
Tue, 3 Nov 2015 17:17:35 +0000 (18:17 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 3 Nov 2015 19:51:28 +0000 (20:51 +0100)
Should fix following autobuilder issues:
http://autobuild.buildroot.net/results/e79353496aa91848c76f15c561efdd84476c20ac/
http://autobuild.buildroot.net/results/a859ecb153838837e9a73b47ed7e1105d6be55ac/
http://autobuild.buildroot.net/results/f2ce1899a1144bec23fb25f4ce36dc78d768f8a8/

[Thomas: s/needs/need/ as suggested by Baruch.]

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

index eb21fa97979d2e6c67d88b2fb706057f68115deb..4c7a66c09d13c5c29545e71c089e797824c27586 100644 (file)
@@ -55,8 +55,8 @@ else
 LIBPCAP_CONF_OPTS += --without-libnl
 endif
 
-# microblaze needs -fPIC instead of -fpic
-ifeq ($(BR2_microblaze),y)
+# microblaze/sparc64 need -fPIC instead of -fpic
+ifeq ($(BR2_microblaze)$(BR2_sparc64),y)
 LIBPCAP_CFLAGS += -fPIC
 endif