projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a123e7e
)
dhcpdump: fix build with musl
author
Baruch Siach
<baruch@tkos.co.il>
Tue, 25 Aug 2015 06:32:21 +0000
(09:32 +0300)
committer
Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>
Tue, 25 Aug 2015 09:49:29 +0000
(11:49 +0200)
muls exposes udphdr Linux member names only when _GNU_SOURCE is defined.
Fixes:
http://autobuild.buildroot.net/results/dc2/
dc2902b758faa7bcfed44cca5fa73aeffdf284ae
/
http://autobuild.buildroot.net/results/432/
43214b5f7d9e5881fbeba7203ee7fcfc6386a492
/
http://autobuild.buildroot.net/results/291/
29100641731904b50d73af7cf2db08847fe1567a
/
and more.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcpdump/dhcpdump.mk
patch
|
blob
|
history
diff --git
a/package/dhcpdump/dhcpdump.mk
b/package/dhcpdump/dhcpdump.mk
index 15fc02f845110278b02e4837720b8bd97c2d9a78..6b677a674ae6ddc62aede8c64fa3d0653e89562c 100644
(file)
--- a/
package/dhcpdump/dhcpdump.mk
+++ b/
package/dhcpdump/dhcpdump.mk
@@
-16,7
+16,8
@@
DHCPDUMP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
endif
define DHCPDUMP_BUILD_CMDS
- $(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" LIBS="$(DHCPDUMP_LIBS)"
+ $(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS) -D_GNU_SOURCE" \
+ LIBS="$(DHCPDUMP_LIBS)"
endef
define DHCPDUMP_INSTALL_TARGET_CMDS