I don't have it working for a build. I did get the scons script to prune
the extra flag when present, but the link errors are still present.

Once the unit test building is worked out a little more I'll get an
overall build script fix in for review.

On 03/17/2015 09:35 AM, Samidurai, Sakthivel wrote:
> 
> Jon,
> Please post a change set with your fix. We will review and test it.
> Thanks,
> =Sam
> -----Original Message-----
> From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-bounces 
> at lists.iotivity.org] On Behalf Of Jon A. Cruz
> Sent: Friday, March 13, 2015 7:02 AM
> To: iotivity-dev at lists.iotivity.org
> Subject: [dev] Scons config causing unit tests to fail
> 
> Hi all,
> 
> I was trying to add a unit test to the build in the Connectivity Abstraction 
> branch. However linking is failing on the build machine due to some issues 
> with gtest 1.7. In addressing that I found a problem in a few places of the 
> build scripts.
> 
> Namely the LINKFLAGS variable is getting some libraries added to it including 
> '-ldl' and '-lpthread'. Those are supposed too be added via appending to 
> LIBS, not LINKFLAGS. Among other problems this prevents changing the link 
> order, which should be a work-around for the gtest problem.
> 
> Can I just go in and move pthread from LINKFLAGS to LIBS in the linux scons 
> script, or is anyone else up to speed on fixing scons files?
> 
> --
> Jon A. Cruz - Senior Open Source Developer Samsung Open Source Group jonc at 
> osg.samsung.com _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
> 

-- 
Jon A. Cruz - Senior Open Source Developer
Samsung Open Source Group
jonc at osg.samsung.com

Reply via email to