We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edfbcc9 commit b1606c4Copy full SHA for b1606c4
libelf-0.8.13.build.bash
@@ -31,6 +31,10 @@ cd libelf-0.8.13
31
CONFARGS="--prefix=$PREFIX --disable-shared"
32
if [[ $CROSS_COMPILE != "" ]] ; then
33
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
38
fi
39
CFLAGS="-w -O2 $CFLAGS" CXXFLAGS="-w -O2 $CXXFLAGS" LDFLAGS="-s $LDFLAGS" ./configure $CONFARGS
40
make -j 1
0 commit comments