X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2Fsenfutil.py;h=c3ef1b2c0d821bc76e35f1860ad7eab4902f2b1a;hb=0734de7b0f8616d5f2454289d1c686ba1d2c625b;hp=2e537d84d675490775816c3d256183cbabde3cc8;hpb=1b1d76302a5d61e918ef71f1c8e11f80ac1262e2;p=senf.git diff --git a/senfscons/senfutil.py b/senfscons/senfutil.py index 2e537d8..c3ef1b2 100644 --- a/senfscons/senfutil.py +++ b/senfscons/senfutil.py @@ -8,7 +8,9 @@ from SCons.Script import * # c) check for a local SENF, set options accordingly and update that SENF if needed def SetupForSENF(env): - env.Append( LIBS = [ 'senf', 'iberty', 'boost_regex', 'boost_iostreams' ], + env.Append( LIBS = [ 'senf', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB' ], + BOOSTREGEXLIB = 'boost_regex', + BOOSTIOSTREAMSLIB = 'boost_iostreams', CXXFLAGS = [ '-Wno-long-long', '${"$CXXFLAGS_"+(final and "final" or "debug")}' ], LINKFLAGS = [ '${"$LINKFLAGS_"+(final and "final" or "debug")}' ], @@ -52,6 +54,6 @@ def SetupForSENF(env): env.Default( env.AlwaysBuild( - env.Command('senf/libsenf.a', [], [ 'scons -C senf $SENF_BUILDOPTS libsenf.a' ]))) + env.Command('senf/libsenf.a', [], [ 'scons -C %s $SENF_BUILDOPTS libsenf.a' % os.path.realpath('senf')]))) else: print '\nUsing global SENF\n'