200-drop_libbsd_dependency.patch 536 B

12345678910111213141516171819
  1. --- a/configure
  2. +++ b/configure
  3. @@ -299,14 +299,8 @@ EOF
  4. if $CC -I$INCLUDE -o $TMPDIR/strtest $TMPDIR/strtest.c >/dev/null 2>&1; then
  5. echo "no"
  6. else
  7. - if ${PKG_CONFIG} libbsd --exists; then
  8. - echo 'CFLAGS += -DHAVE_LIBBSD' `${PKG_CONFIG} libbsd --cflags` >>$CONFIG
  9. - echo 'LDLIBS +=' `${PKG_CONFIG} libbsd --libs` >> $CONFIG
  10. - echo "no"
  11. - else
  12. - echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG
  13. - echo "yes"
  14. - fi
  15. + echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG
  16. + echo "yes"
  17. fi
  18. rm -f $TMPDIR/strtest.c $TMPDIR/strtest
  19. }