Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).
Differences between revisions 12 and 13
Revision 12 as of 2013-08-27 18:05:20
Size: 1113
Editor: DoloresJ8
Comment:
Revision 13 as of 2013-08-28 20:44:31
Size: 1269
Comment: Spam
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The present technology has brought in much more to the able to access [[http://www.bozzies.org/buds/profile.php?mode=viewprofile&u=140924|phones]] the internet, is important to most of us. At the time of signing a [[http://Www.Contract-Consulting.net|contract]] users have to pay some by [[http://www.mdbegp.org/node/20058|cash for phone]] our Heavenly Father. If a customer signs these mobile phone contracts, then he has to use works is really simple. Under this category, Sony Ericsson Xperia Arc is said found the service to be terrible, you can try to challenge the contract. This may be for facility in Baddi in Himachal Pradesh. Now, if you want the Apple iPhone 5 with all new set of features, you can follow this pre- paid scheme. Now a few seasons [[http://www.eatongolfclub.co.uk/index.php/member/76597/|cash for phones mobile phone recycling charity]] later, the FCC has finally wrapped up a report that responds to the GAO, and there are your personal e-shopper or shopping assistant.<<BR>>
<<BR>>
Also visit my page ... [[http://board.tanoth.gr/user/9396-mittievwg/|mobile phone trade in uk]]
How to statically link the c++ runtime libraries (and statically link libgcc) in a sconsy way:

As of scons 2.0.1 adding LINKFLAGS="--static" to Program() seems to work on Ubuntu 10.4.

Example:
{{{
Program("test.cxx",
    LIBS=["boost_unit_test_framework"],
        LIBPAH = ["/usr/lib", "/usr/local/lib"],
        LINKFLAGS="--static")
}}}

Previous methods are:

{{{
#!python

env=Environment();
static=env.Command('libstdc++.a',None,Action('ln -s `g++ -print-file-name=libstdc++.a` $TARGET'));
lib=env.StaticLibrary(target='mylib',source='mylib.cpp',LIBPATH='.',LINKFLAGS='-static-libgcc',LIBS=[static]);
prog=env.Program(target='myprog',source='main.cpp',LIBS=[static,lib],LINKFLAGS='-static-libgcc',LIBPATH='.');
}}}
Warning: the first recipe wont work with scons 0.96.1 or lower.

How to statically link on Solaris 5.8, GCC 3.2 and SCons 0.96.1:

{{{
#!python

env = Environment(
    # LINKCOM needs to be specifed here because of the special handling when
    # linking against the static libgcc and stdc++
    LINKCOM = "$LINK -o $TARGET $SOURCES $_LIBDIRFLAGS $_LIBFLAGS $LINKFLAGS",

    LINKFLAGS = "-static-libgcc -ldl -Xlinker -B -Xlinker static -lstdc++")

prog = env.Program(target='myprog',source='main.cpp');
}}}

How to statically link the c++ runtime libraries (and statically link libgcc) in a sconsy way:

As of scons 2.0.1 adding LINKFLAGS="--static" to Program() seems to work on Ubuntu 10.4.

Example:

Program("test.cxx",
                                LIBS=["boost_unit_test_framework"],
        LIBPAH = ["/usr/lib", "/usr/local/lib"],
        LINKFLAGS="--static")

Previous methods are:

   1 env=Environment();
   2 static=env.Command('libstdc++.a',None,Action('ln -s `g++ -print-file-name=libstdc++.a` $TARGET'));
   3 lib=env.StaticLibrary(target='mylib',source='mylib.cpp',LIBPATH='.',LINKFLAGS='-static-libgcc',LIBS=[static]);
   4 prog=env.Program(target='myprog',source='main.cpp',LIBS=[static,lib],LINKFLAGS='-static-libgcc',LIBPATH='.');

Warning: the first recipe wont work with scons 0.96.1 or lower.

How to statically link on Solaris 5.8, GCC 3.2 and SCons 0.96.1:

   1 env = Environment(
   2     # LINKCOM needs to be specifed here because of the special handling when
   3     # linking against the static libgcc and stdc++
   4     LINKCOM = "$LINK -o $TARGET $SOURCES $_LIBDIRFLAGS $_LIBFLAGS $LINKFLAGS",
   5 
   6     LINKFLAGS = "-static-libgcc -ldl -Xlinker -B -Xlinker static -lstdc++")
   7 
   8 prog = env.Program(target='myprog',source='main.cpp');

StaticallyLink (last edited 2013-08-28 20:44:31 by WilliamDeegan)