On Jul 9, 2017 10:02 PM, "Gregg Reynolds" <dev at mobileink.com> wrote:
On Jul 9, 2017 2:37 PM, "Mats Wichmann" <mats at wichmann.us> wrote:
On 07/09/2017 12:59 AM, Natalia Theologou wrote:
> scons TARGET_OS=linux TARGET_ARCH=arm TARGET_TRANSPORT=IP SECURED=0
RELEASE=1 TC_PREFIX=arm-none-linux-gnueabi- TC_PATH=/opt/gcc-arm-none-eabi
-6-2017-q2-update/arm-none-eabi/bin
Hmmm....
somewhere in the bowels of our build scripts, if we're targeting linux:
if 'gcc' in compiler:
thread_env.AppendUnique(CFLAGS = ['-Wall'])
if target_os not in ['android']:
thread_env.AppendUnique(CFLAGS = ['-pthread'])
thread_env.AppendUnique(LIBS = ['pthread'])
well there's part of the problem. a good build system would feature test
for pthreads, rather than assuming it's there just because the target is
not android. this is atrocious code.
ok and if you are cross-compiling obviously you cannot feature test by
running a bit of code on the host. your only option afaik is to
parameterize everything on the target, so you need a case for each target.
luv, g
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170709/5f4666e7/attachment.html>