projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb2e05
)
libpcap: fix build on microblaze
author
Peter Korsgaard
<jacmet@sunsite.dk>
Wed, 5 Sep 2012 14:04:52 +0000
(16:04 +0200)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/package/libpcap/libpcap.mk
b/package/libpcap/libpcap.mk
index 04766eacdb57b370078ab256b151c549065825f2..7a1d32f40ea5a5ec63487a3a6134037a3ccee176 100644
(file)
--- 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))