summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIsmael Luceno2021-01-21 19:14:19 +0100
committerIsmael Luceno2021-01-21 19:14:45 +0100
commita0a616142375399970d09e781664f996506d6614 (patch)
tree51792233dd109aeba36ed328bf5ebb895eb09bc9 /net
parent7958b281cd371dc29a89e66aa1af46e88a0f8b12 (diff)
iputils-ping: Fix building against musl
Diffstat (limited to 'net')
-rwxr-xr-xnet/iputils-ping/BUILD5
-rw-r--r--net/iputils-ping/HISTORY1
2 files changed, 6 insertions, 0 deletions
diff --git a/net/iputils-ping/BUILD b/net/iputils-ping/BUILD
index b5ea55b7ab..5c63e22ea4 100755
--- a/net/iputils-ping/BUILD
+++ b/net/iputils-ping/BUILD
@@ -1,3 +1,8 @@
+case "$HOST" in
+ (*-musl)
+ CFLAGS+=' -DAI_CANONIDN=0'
+ ;;
+esac &&
make CC="${CC:-cc}" TARGETS=ping &&
if is_depends_enabled $SPELL opensp ; then
make_single &&
diff --git a/net/iputils-ping/HISTORY b/net/iputils-ping/HISTORY
index ab81527fd2..d9ca0f1d6c 100644
--- a/net/iputils-ping/HISTORY
+++ b/net/iputils-ping/HISTORY
@@ -2,6 +2,7 @@
* BUILD: fixed to build only ping without patching
* 0001-build-ping.patch: removed, no longer needed
* PRE_BUILD: fixed duplicated variable definition
+ * BUILD: fixed build against musl
2018-06-30 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* DETAILS: version 20180629