sworda / serf

Automatically exported from code.google.com/p/serf
Apache License 2.0
0 stars 0 forks source link

ParseConfig and duplicate linker flags #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SConstruct contains the following lines:

    env.ParseConfig('$APR --cflags --cppflags --ldflags --includes'$            
                    ' --link-ld --libs')$                             
    env.ParseConfig('$APU --ldflags --includes --link-ld --libs')$

In my build environment, this caused some elements of LINKFLAGS to be removed.
The following worked better for me:

   env.ParseConfig('$APR --cflags --cppflags --ldflags --includes'$            
                   ' --link-ld --libs', unique=0)$                             
   env.ParseConfig('$APU --ldflags --includes --link-ld --libs', unique=0)$

Original issue reported on code.google.com by yorickth...@gmail.com on 7 Dec 2014 at 4:36