$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Andre Hentz (ahentz_at_[hidden])
Date: 2004-04-01 19:34:56
I have the following in one of my Jamfiles:
project myProj : requirements <link-runtime>shared
<toolset>gcc:<linkflags>-nodefaultlibs
<toolset>gcc:<find-shared-library>c
<os>CYGWIN:<find-static-library>stdc++
<os>CYGWIN:<find-static-library>gcc
<os>CYGWIN:<find-static-library>cygwin
<os>CYGWIN:<find-shared-library>advapi32
<os>CYGWIN:<find-shared-library>kernel32
<os>CYGWIN:<find-shared-library>shell32
<os>CYGWIN:<find-shared-library>user32
<os>LINUX:<find-static-library>stdc++
<os>LINUX:<find-static-library>gcc
<os>FREEBSD:<find-static-library>stdc++
<os>FREEBSD:<find-static-library>gcc
<os>SOLARIS:<find-static-library>supc++
<os>SOLARIS:<find-static-library>gcc_eh
;
The idea is to link everything statically, except system libraries
(unfortunately I can't rely on the operating system having the correct
version of libstdc++).
However on the command line, the libraries appear to be alphabetically
ordered. For example, for cygwin and gcc 3.3.1:
-ladvapi32 -lc -lcygwin -lgcc -lkernel32 -lshell32 -lstdc++ -luser32
Can I control the ordering in any way?
Best,
Andre Hentz