diff options
author | Haibo Huang <hhb@google.com> | 2019-05-23 01:18:43 -0700 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2019-05-24 17:31:45 +0000 |
commit | b551e604f2bb9848e4907944061760b75b0cdd70 (patch) | |
tree | 9cda0180574d2d6b0b43ea3a659ff6ef2669132a | |
parent | 21e1f0478cba2044ee1994ef4c12a01d9975b6f4 (diff) | |
download | yasm-b551e604f2bb9848e4907944061760b75b0cdd70.tar.gz |
Set CFLAGS_FOR_BUILD to be CFLAGS for yasm
In yasm Makefile, all sources are compiled with CFLAGS_FOR_BUILD. But we only set CFLAGS.
This results in some missing flags. E.g. sysroot if use different OSX Sdk.
Test: build
Change-Id: Ic6a6108270d6005dcbd7bbc20f18a48957b6e98d
-rwxr-xr-x | build-yasm.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-yasm.sh b/build-yasm.sh index 86e50f21..60a27bf1 100755 --- a/build-yasm.sh +++ b/build-yasm.sh @@ -102,7 +102,8 @@ fi prepare_canadian_toolchain $BUILD_DIR CFLAGS=$HOST_CFLAGS" -O2 -s" -export CC CFLAGS +CFLAGS_FOR_BUILD=$CFLAGS +export CC CFLAGS CFLAGS_FOR_BUILD log "Configuring the build" cd $BUILD_DIR/src && run ./configure $CONFIGURE_FLAGS --build=$ABI_CONFIGURE_BUILD |