1
0

010-configure-respect-LDFLAGS.patch 1.3 KB

1234567891011121314151617181920212223242526272829
  1. --- a/configure
  2. +++ b/configure
  3. @@ -174,7 +174,7 @@ int main(int argc, char **argv) {
  4. return 0;
  5. }
  6. EOF
  7. - libpcap_err=$($CC -o $TMPDIR/libpcaptest $TMPDIR/libpcaptest.c $LIBPCAP_CFLAGS $LIBPCAP_LDLIBS 2>&1)
  8. + libpcap_err=$($CC -o $TMPDIR/libpcaptest $TMPDIR/libpcaptest.c $LIBPCAP_CFLAGS $LIBPCAP_LDLIBS $LDFLAGS 2>&1)
  9. if [ "$?" -eq "0" ]; then
  10. echo "HAVE_PCAP:=y" >>$CONFIG
  11. [ -n "$LIBPCAP_CFLAGS" ] && echo 'CFLAGS += ' $LIBPCAP_CFLAGS >> $CONFIG
  12. @@ -222,7 +222,7 @@ int main(int argc, char **argv) {
  13. return 0;
  14. }
  15. EOF
  16. - libbpf_err=$($CC -o $TMPDIR/libbpftest $TMPDIR/libbpftest.c -Werror $LIBBPF_CFLAGS $LIBBPF_LDLIBS 2>&1)
  17. + libbpf_err=$($CC -o $TMPDIR/libbpftest $TMPDIR/libbpftest.c -Werror $LIBBPF_CFLAGS $LIBBPF_LDLIBS $LDFLAGS 2>&1)
  18. if [ "$?" -eq "0" ]; then
  19. echo "HAVE_FEATURES+=${config_var}" >>"$CONFIG"
  20. echo "yes"
  21. @@ -289,7 +289,7 @@ int main(int argc, char **argv) {
  22. }
  23. EOF
  24. - libbpf_err=$($CC -o $TMPDIR/libbpftest $TMPDIR/libbpftest.c -Werror $LIBBPF_CFLAGS $LIBBPF_LDLIBS 2>&1)
  25. + libbpf_err=$($CC -o $TMPDIR/libbpftest $TMPDIR/libbpftest.c -Werror $LIBBPF_CFLAGS $LIBBPF_LDLIBS $LDFLAGS 2>&1)
  26. if [ "$?" -eq "0" ]; then
  27. echo "SYSTEM_LIBBPF:=y" >>$CONFIG
  28. echo "LIBBPF_VERSION=$LIBBPF_VERSION" >>$CONFIG