Hi Abhishek,

On Tue, Sep 15, 2015 at 7:25 AM, ABHISHEK PANDEY <abhi.siso at samsung.com>
wrote:

> Recently we face problem building CSDK samples on Tizen due to lack of
> c++11 support.
>
> https://jira.iotivity.org/browse/IOT-688
>
> While checking this problem, I found out that this option is added in
> below file
>
> ./iotivity/build_common/iotivityconfig/__init__.py:78:def
> *check_cxx11_flags*(context):
>

It's not added by this file since the scons/python code that runs this
python function was inadvertently removed during the CA merge and was never
reintroduced.  This function is specifically designed to check if the
-std=c++11 flag works, and falls back on -std=c++0x or other alternatives
if it doesn't.  Even if the code was enabled, it wouldn't introduce
-std=c++11 if the compiler in use doesn't support it.  See the
_cxx11_flags()
<https://git.iotivity.org/cgit/iotivity/tree/build_common/iotivityconfig/compiler/gcc_configuration.py#n98>
function in build_common/iotivityconfig/compiler/gcc_configuration.py
<https://git.iotivity.org/cgit/iotivity/tree/build_common/iotivityconfig/compiler/gcc_configuration.py>
. 

> As its a common build config, I am afraid changing it might affect other
> platforms.
>
> Is there a way to disable this option in iotivity scons build by taking a
> command line input ?
>
> Please provide some input if someone has faced something like this in
> other platforms.
>

It's currently not enabled, and was actually disabled during the CA merge,
as I mentioned above.  From a quick grep, it looks like the -std=c++11 flag
is added by one of the Tizen samples:

$ cd resource
$ grep -r std=c++11
csdk/stack/samples/tizen/SimpleClientServer/scons/SConscript:
env.AppendUnique(CP
PFLAGS = ['-std=c++11', '-fPIC', '-D__TIZEN__','-DWITH_POSIX', '-Wall',
'-DSLP_S
DK_LOG', '-g','-D_GNU_SOURCE','-DTIZEN_DEBUG_ENABLE',
'-DTB_LOG','`pkg-config',
'--cflags', '--libs','dlog', 'com.oic.ri', 'capi-network-wifi',


HTH,
-Ossama

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150915/79f68e83/attachment.html>

Reply via email to