From dd00c5fcd072b4a1e3862c5af29f8c580acadd38 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 5 Sep 2012 16:04:52 +0200 Subject: libpcap: fix build on microblaze On microblaze, libpcap needs to be built with -fPIC rather than -fpic as reported by mrueg on IRC. Signed-off-by: Peter Korsgaard --- package/libpcap/libpcap.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/libpcap') diff --git a/package/libpcap/libpcap.mk b/package/libpcap/libpcap.mk index 04766eacd..7a1d32f40 100644 --- a/package/libpcap/libpcap.mk +++ b/package/libpcap/libpcap.mk @@ -21,4 +21,9 @@ LIBPCAP_CONF_ENV = ac_cv_linux_vers=2 \ ac_cv_header_linux_wireless_h=yes # configure misdetects this LIBPCAP_CONF_OPT = --disable-yydebug --with-pcap=linux +# microblaze needs -fPIC instead of -fpic +ifeq ($(BR2_microblaze),y) +LIBPCAP_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -fPIC" +endif + $(eval $(autotools-package)) -- cgit v1.2.3