From 41750107496858a047afa8d81d20fe903f285a78 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 17 Jun 2011 14:48:28 +0100 Subject: scons: make embedding orthogonal to the platform To enable embedding in platforms other than linux. --- SConstruct | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 8607d2cd8e..dc5fd776a7 100644 --- a/SConstruct +++ b/SConstruct @@ -80,23 +80,6 @@ env.Append(CPPPATH = [ if env['msvc']: env.Append(CPPPATH = ['#include/c99']) -# Embedded -if env['platform'] == 'embedded': - env.Append(CPPDEFINES = [ - '_POSIX_SOURCE', - ('_POSIX_C_SOURCE', '199309L'), - '_SVID_SOURCE', - '_BSD_SOURCE', - '_GNU_SOURCE', - - 'PTHREADS', - ]) - env.Append(LIBS = [ - 'm', - 'pthread', - 'dl', - ]) - # Posix if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'): env.Append(CPPDEFINES = [ @@ -130,7 +113,7 @@ if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'): # # Create host environent -if env['crosscompile'] and env['platform'] != 'embedded': +if env['crosscompile'] and not env['embedded']: host_env = Environment( options = opts, # no tool used -- cgit v1.2.3