Skip to content

Commit b1606c4

Browse files
committed
Fix libelf configure for newer mingw-w6 toolchains
1 parent edfbcc9 commit b1606c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libelf-0.8.13.build.bash

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ cd libelf-0.8.13
3131
CONFARGS="--prefix=$PREFIX --disable-shared"
3232
if [[ $CROSS_COMPILE != "" ]] ; then
3333
CONFARGS="$CONFARGS --host=$CROSS_COMPILE_HOST"
34+
# solve bug with --host not being effective on second level directory
35+
export CC=$CROSS_COMPILE_HOST-gcc
36+
export AR=$CROSS_COMPILE_HOST-ar
37+
export RANLIB=$CROSS_COMPILE_HOST-ranlib
3438
fi
3539
CFLAGS="-w -O2 $CFLAGS" CXXFLAGS="-w -O2 $CXXFLAGS" LDFLAGS="-s $LDFLAGS" ./configure $CONFARGS
3640
make -j 1

0 commit comments

Comments
 (0)