Skip to content

Commit 8e03b4b

Browse files
committed
Specify build param when cross-compiling
1 parent dd7b3f4 commit 8e03b4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ before_install:
2121
- curl https://s3.amazonaws.com/libhttpserver/libmicrohttpd_releases/libmicrohttpd-0.9.59.tar.gz -o libmicrohttpd-0.9.59.tar.gz
2222
- tar -xvzf libmicrohttpd-0.9.59.tar.gz
2323
- cd libmicrohttpd-0.9.59
24-
- if [[ "$ARM_ARCH_DIR" != "" ]]; then ./configure --host $ARM_ARCH_DIR --disable-examples; else ./configure --disable-examples; fi
24+
- if [[ "$ARM_ARCH_DIR" != "" ]]; then ./configure --build `./config.guess` --host $ARM_ARCH_DIR --disable-examples; else ./configure --disable-examples; fi
2525
- make
2626
- sudo make install
2727
- cd ..
@@ -44,9 +44,9 @@ install:
4444
elif [ "$DEBUG" = "debug" ]; then
4545
../configure --enable-debug --disable-shared --disable-fastopen;
4646
elif [ "$CROSS_COMPILE" = "1" ] && [ "$ARM_ARCH_DIR" = "aarch64-linux-gnu" ]; then
47-
../configure --disable-fastopen --host aarch64-linux-gnu CC="gcc -B$HOME/linker_bin" CXX="g++ -B$HOME/linker_bin";
47+
../configure --disable-fastopen --build `../config.guess` --host aarch64-linux-gnu CC="gcc -B$HOME/linker_bin" CXX="g++ -B$HOME/linker_bin";
4848
elif [ "$CROSS_COMPILE" = "1" ] && [ "$ARM_ARCH_DIR" = "arm-linux-gnueabi" ]; then
49-
../configure --disable-fastopen --host arm-linux-gnueabi;
49+
../configure --disable-fastopen --build `../config.guess` --host arm-linux-gnueabi;
5050
else
5151
../configure --disable-fastopen;
5252
fi

0 commit comments

Comments
 (0)