Advertisement
Guest User

100-configure.patch

a guest
Mar 27th, 2021
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.43 KB | None
  1. --- a/configure
  2. +++ b/configure
  3. @@ -39,7 +39,8 @@ int main(int argc, char **argv) {
  4.  }
  5.  EOF
  6.  
  7. -    if $CC -I$INCLUDE -o $TMPDIR/atmtest $TMPDIR/atmtest.c -latm >/dev/null 2>&1; then
  8. +# OpenWrt: disable ATM support even if present on host system
  9. +    if [ 1 -eq 0 ]; then
  10.     echo "TC_CONFIG_ATM:=y" >>$CONFIG
  11.     echo yes
  12.      else
  13. --- a/configure
  14. +++ b/configure
  15. @@ -321,27 +321,22 @@
  16.      else
  17.          LIBBPF_CFLAGS=$(${PKG_CONFIG} libbpf --cflags)
  18.          LIBBPF_LDLIBS=$(${PKG_CONFIG} libbpf --libs)
  19.          LIBBPF_VERSION=$(${PKG_CONFIG} libbpf --modversion)
  20.      fi
  21.  
  22. -    if ! have_libbpf_basic; then
  23. -        echo "no"
  24. -        echo " libbpf version $LIBBPF_VERSION is too low, please update it to at least 0.1.0"
  25. -        check_force_libbpf_on
  26. -        return
  27. -    else
  28. +
  29.          echo "HAVE_LIBBPF:=y" >> $CONFIG
  30.          echo 'CFLAGS += -DHAVE_LIBBPF ' $LIBBPF_CFLAGS >> $CONFIG
  31.          echo "CFLAGS += -DLIBBPF_VERSION=\\\"$LIBBPF_VERSION\\\"" >> $CONFIG
  32.          echo 'LDLIBS += ' $LIBBPF_LDLIBS >> $CONFIG
  33.  
  34.          if [ -z "$LIBBPF_DIR" ]; then
  35.              echo "CFLAGS += -DLIBBPF_DYNAMIC" >> $CONFIG
  36.          fi
  37. -    fi
  38. +
  39.  
  40.      # bpf_program__title() is deprecated since libbpf 0.2.0, use
  41.      # bpf_program__section_name() instead if we support
  42.      if have_libbpf_sec_name; then
  43.          echo "HAVE_LIBBPF_SECTION_NAME:=y" >> $CONFIG
  44.          echo 'CFLAGS += -DHAVE_LIBBPF_SECTION_NAME ' >> $CONFIG
  45.  
  46.  
Advertisement
RAW Paste Data Copied
Advertisement