[libbpf] use --disable-libdebuginfod while building libelf (#6945)

Looks like --disable-libdebuginfod works now so it seems
it can safely be used instead of installing libcurl and
letting ./configure find and ignore it.
This commit is contained in:
Evgeny Vereshchagin 2021-12-01 14:09:05 +03:00 committed by GitHub
parent a1eb5b60fc
commit fb3be33af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ RUN sed -i -e '/^#\s*deb-src.*\smain\s\+restricted/s/^#//' /etc/apt/sources.list
# libelf build dependencies \
apt-get build-dep -y --no-install-recommends libelf-dev && \
apt-get install -y --no-install-recommends pkg-config && \
apt-get install -y --no-install-recommends libcurl4-gnutls-dev && \
# libbpf build dependencies \
apt-get install -y --no-install-recommends libz-dev
RUN git clone --depth 1 https://github.com/libbpf/libbpf

View File

@ -76,7 +76,7 @@ sed -i 's/^\(ZDEFS_LDFLAGS=\).*/\1/' configure.ac &&
autoreconf -i -f &&
./configure --enable-maintainer-mode --disable-debuginfod CC="$CC" CFLAGS="-Wno-error $CFLAGS" CXX="$CXX" CXXFLAGS="-Wno-error $CXXFLAGS" LDFLAGS="$CFLAGS" &&
./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod CC="$CC" CFLAGS="-Wno-error $CFLAGS" CXX="$CXX" CXXFLAGS="-Wno-error $CXXFLAGS" LDFLAGS="$CFLAGS" &&
make -C config -j$(nproc) V=1 &&
make -C lib -j$(nproc) V=1 &&
make -C libelf -j$(nproc) V=1