[Xorp-hackers] [PATCH1/3] main SConstract bugs

"Igor Maravić" igorm at etf.rs
Mon Sep 26 01:32:19 PDT 2011


> On 09/23/2011 06:43 AM, "Igor Maravić" wrote:
>> When I did "scons install" rtrmngr was looking for .xrls files in folder /xrl/targets not in folder /xorp/xrls, so I changed that.
>> Also I removed ; from if statements.
>> Also only when value of 'optimize' is set to 'override', we should skip appending CFLAGS/CXXFLAGS.
>> When it's value is 'no', CFLAGS/CXXFLAGS still have some value to be appended.
>
> Please break this into 3 different patches for these 3 different
> things.
>
> For the .xrls part, what error did you see?  I don't see
> any trouble with 'scons install' on my systems.  What command
> are you using for the compile?
>
> Thanks,
> Ben
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
>

Only when value of 'optimize' is set to 'override', we should skip appending CFLAGS/CXXFLAGS.
When it's value is 'no', CFLAGS/CXXFLAGS still have some value to be appended.

Signed-off-by: Igor Maravić <igorm at etf.rs>
---

diff -upNr xorp.orig/SConstruct xorp/SConstruct
--- xorp.orig/SConstruct        2011-09-12 20:23:12.000000000 +0200
+++ xorp/SConstruct        2011-09-23 15:28:34.429947091 +0200
@@ -713,7 +713,7 @@ if not env['optimize'] == 'override':
                  'highest': '-O3',
                  'size': '-Os' }
     bigoflag = bigodict[env['optimize']]
-    if not env['optimize'] == 'no':
+    if not env['optimize'] == 'override':
         env.AppendUnique(CFLAGS = [ bigoflag ])
         env.AppendUnique(CXXFLAGS = [ bigoflag ])




More information about the Xorp-hackers mailing list