ref: 43a34557f15219295287544dd14ed9cdfb0e4726
parent: 205532f3a76752bec3a8b4d229c5fbf569b29922
author: James Zern <[email protected]>
date: Wed Aug 26 16:28:26 EDT 2015
configure: append --extra-cflags to final set previously any flags added while setting up the toolchain would override the user selections; environment variables could be treated similarly Change-Id: Ibfcc644137d8e579af554d19a38d4020019a7a34
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1323,12 +1323,6 @@
add_cflags -D_LARGEFILE_SOURCE
add_cflags -D_FILE_OFFSET_BITS=64
fi
-
- # append any user defined extra cflags
- if [ -n "${extra_cflags}" ] ; then
- check_add_cflags ${extra_cflags} || \
- die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
- fi
}
process_toolchain() {
--- a/configure
+++ b/configure
@@ -716,6 +716,12 @@
esac
# libwebm needs to be linked with C++ standard library
enabled webm_io && LD=${CXX}
+
+ # append any user defined extra cflags
+ if [ -n "${extra_cflags}" ] ; then
+ check_add_cflags ${extra_cflags} || \
+ die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
+ fi
}