Automatically detect C99 flags for supported compilers.
authorOssama Othman <ossama.othman@intel.com>
Tue, 17 Mar 2015 21:43:18 +0000 (14:43 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 23 Mar 2015 19:54:05 +0000 (19:54 +0000)
commit49b334b7cca00c924001c8e2620aee08577b5dff
treea353c9f0800e901b03added1a843203f97fc55c3
parentd62f032a35b05c36f9b29e3b5676e94495ba6c53
Automatically detect C99 flags for supported compilers.

This patch set allows the required C99 command line flags to be
automatically set earlier in the build process.  Currently only gcc is
supported, but adding support for other compilers is straightforward.

Hard-coded '-std=c99' and '-std=gnu99' CFLAGS found throughout
iotivity SConscript files have been removed.  Feature test macros have
been added where needed to enable extensions that were disabled by
automatic addition of '-std=c99' to the CFLAGS build variable.

Change-Id: I6d05313aefff1911d1aaa2097954a1878874e73a
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/495
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
12 files changed:
build_common/SConscript
build_common/iotivityconfig/__init__.py
build_common/iotivityconfig/compiler/configuration.py
build_common/iotivityconfig/compiler/default_configuration.py
build_common/iotivityconfig/compiler/factory.py
build_common/iotivityconfig/compiler/gcc_configuration.py
resource/csdk/SConscript
resource/csdk/libcoap-4.1.1/SConscript
resource/oc_logger/SConscript
resource/oc_logger/examples/SConscript
service/protocol-plugin/plugins/mqtt-fan/lib/SConscript
service/protocol-plugin/plugins/mqtt-fan/lib/mosquitto.c