packages/libs/libdnet/patches/001-dnet_config.patch
florian 6b946d0933 [package] update libdnet to 1.11 (#5390)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-21 11:19:59 +00:00

24 lines
524 B
Diff

--- a/dnet-config.in
+++ b/dnet-config.in
@@ -45,10 +45,18 @@ while test $# -gt 0; do
done
if test "$echo_cflags" = "yes"; then
- echo -I@includedir@
+ includes=
+ if test "@includedir@" != "/usr/include" ; then
+ includes=-I@includedir@
+ fi
+ echo $includes
fi
if test "$echo_libs" = "yes"; then
- echo -L@libdir@ -ldnet @LIBS@
+ libs=
+ if test "@libdir@" != "/usr/lib" ; then
+ libs=-I@libdir@
+ fi
+ echo $libs -ldnet @LIBS@
fi