diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-01-29 13:37:24 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-01-29 14:00:13 +0100 |
commit | a3ccac6b1d693527befa73532a6cf5abda7134c0 (patch) | |
tree | cb822bc78d7fd23a9acbf2d41cf0ed6467ef16e0 /package | |
parent | 4443804b545f19b12571cb8b532fa55926e3e3f3 (diff) | |
download | upstream-a3ccac6b1d693527befa73532a6cf5abda7134c0.tar.gz upstream-a3ccac6b1d693527befa73532a6cf5abda7134c0.tar.bz2 upstream-a3ccac6b1d693527befa73532a6cf5abda7134c0.zip |
iproute2: drop libbsd dependency
As the usage of libbsd is no longer limited to glibc, prevent libbsd
being picked up by removing the dependency on libbsd.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch b/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch new file mode 100644 index 0000000000..f6ec945297 --- /dev/null +++ b/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch @@ -0,0 +1,19 @@ +--- a/configure ++++ b/configure +@@ -299,14 +299,8 @@ EOF + if $CC -I$INCLUDE -o $TMPDIR/strtest $TMPDIR/strtest.c >/dev/null 2>&1; then + echo "no" + else +- if ${PKG_CONFIG} libbsd --exists; then +- echo 'CFLAGS += -DHAVE_LIBBSD' `${PKG_CONFIG} libbsd --cflags` >>$CONFIG +- echo 'LDLIBS +=' `${PKG_CONFIG} libbsd --libs` >> $CONFIG +- echo "no" +- else +- echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG +- echo "yes" +- fi ++ echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG ++ echo "yes" + fi + rm -f $TMPDIR/strtest.c $TMPDIR/strtest + } |