build: take compiler options from environment
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 10 Dec 2016 17:08:05 +0000 (18:08 +0100)
committerDave Thaler <dthaler@microsoft.com>
Sun, 2 Apr 2017 14:34:15 +0000 (14:34 +0000)
commit52aae56472750c9a1260d85fab78247116355b7d
tree13f3bebc42cf44583144580af30b965648ae4b5e
parentfe4b4a49884362eb729b2d8379ce58f0ab7daf64
build: take compiler options from environment

This makes it possible to compile IoTivity with custom compiler
options. This way someone can use optimized compiler settings for the
target CPU. I want to use this in OpenWrt / LEDE to build specific
IoTivity binaries for each CPU architecture, there the build system
provides the matching compiler options.

Change-Id: I86772f73b81c41d7e96e51b434fd9e3b4992753a
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15435
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
build_common/SConscript
build_common/linux/SConscript
resource/csdk/connectivity/build/linux/SConscript