Skip to content

Commit

Permalink
Fix pkg-config when cross compiling curl
Browse files Browse the repository at this point in the history
  • Loading branch information
gqmelo committed Sep 3, 2024
1 parent 28f4460 commit f95bdc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/install-deps-cross-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ install_deps() {
RANLIB=${TOOLCHAIN}/bin/llvm-ranlib \
STRIP=${TOOLCHAIN}/bin/llvm-strip \
LDFLAGS="-static" \
PKG_CONFIG="pkg-config --static" \
PKG_CONFIG="pkg-config --static" PKG_CONFIG_LIBDIR=${INSTALL_PREFIX} \
./configure \
--disable-shared \
--enable-static \
Expand Down
4 changes: 2 additions & 2 deletions tools/install-deps-cross-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ if ! ${USE_CACHE} || [ ! -d /usr/local/aarch64-linux-gnu ] || [ ! -d ${NATIVE_PR
--with-ca-fallback
--prefix=/usr/local/aarch64-linux-gnu"
if [ "${SHARED_LIBS}" == "OFF" ]; then
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" CC=aarch64-linux-gnu-gcc \
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" CC=aarch64-linux-gnu-gcc PKG_CONFIG_LIBDIR=/usr/lib/aarch64-linux-gnu \
../configure \
--disable-shared \
--enable-static \
${CURL_OPTIONS}
make install -j`nproc` V=1 LDFLAGS="-static"
else
CC=aarch64-linux-gnu-gcc \
CC=aarch64-linux-gnu-gcc PKG_CONFIG_LIBDIR=/usr/lib/aarch64-linux-gnu \
../configure \
--enable-shared \
--disable-static \
Expand Down
4 changes: 2 additions & 2 deletions tools/install-deps-cross-armhf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ if ! ${USE_CACHE} || [ ! -d /usr/local/arm-linux-gnueabihf ] || [ ! -d ${NATIVE_
--with-ca-fallback
--prefix=/usr/local/arm-linux-gnueabihf"
if [ "${SHARED_LIBS}" == "OFF" ]; then
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" CC=arm-linux-gnueabihf-gcc \
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" CC=arm-linux-gnueabihf-gcc PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf \
../configure \
--disable-shared \
--enable-static \
${CURL_OPTIONS}
make install -j`nproc` V=1 LDFLAGS="-static"
else
CC=arm-linux-gnueabihf-gcc \
CC=arm-linux-gnueabihf-gcc PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf \
../configure \
--enable-shared \
--disable-static \
Expand Down

0 comments on commit f95bdc9

Please sign in to comment.