libpcap: fix build on microblaze
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Sep 2012 14:04:52 +0000 (16:04 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Sep 2012 14:04:52 +0000 (16:04 +0200)
On microblaze, libpcap needs to be built with -fPIC rather than -fpic as
reported by mrueg on IRC.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libpcap/libpcap.mk

index 04766eacdb57b370078ab256b151c549065825f2..7a1d32f40ea5a5ec63487a3a6134037a3ccee176 100644 (file)
@@ -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))