2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
Rene Rivera
c2c245b5df Undo addition of generator.can-build. Use generator.run to get the same effect.
[SVN r34834]
2006-08-07 05:27:15 +00:00
Rene Rivera
a2e4712a4e Skip targets that can't be generated like BBv1 does.
[SVN r34806]
2006-08-02 18:26:30 +00:00
Rene Rivera
eaf3e52104 Add compiler specific bin dir to lib paths, as it contains important runtime dynamic libraries, for example for mingw.
[SVN r34319]
2006-06-16 21:52:54 +00:00
Markus Schöpflin
57f5c303b7 Removed -soname option for Tru64.
[SVN r34079]
2006-05-24 10:37:55 +00:00
Vladimir Prus
7cb8b443ec Don't pass -s on Darwin.
[SVN r33998]
2006-05-18 10:37:52 +00:00
Vladimir Prus
3f2f2d6399 Stop intel-linux from failing due unknown name of archiver command.
[SVN r33997]
2006-05-18 10:37:10 +00:00
Matthias Troyer
b32b261b1f Increased template-depth to accomodate serialization library
[SVN r33939]
2006-05-05 15:34:29 +00:00
Jürgen Hunold
34a433e808 Fixed shadowing of rc variable in if-clause.
[SVN r33714]
2006-04-16 18:15:30 +00:00
Rene Rivera
da6609dc09 Fix RC tool to fallback to the null rc type when a real one can't be found.
[SVN r33699]
2006-04-14 20:07:35 +00:00
Rene Rivera
d98c2876ac Per ticket #81 <https://zigzag.cs.msu.su/boost.build/ticket/81>. Use start/end-group options of the GNU linker to allow for cyclic dependencies in libraries.
[SVN r33575]
2006-04-07 00:48:49 +00:00
Rene Rivera
81d10205de Add support for toolset specific resource compiler tool. Make gcc toolset configure a resource compiler if available, and optionally can be user configured. This allows the use of RC files with MinGW and CYGWIN. MSVC minor adjustment to changed name of RC rule.
[SVN r33539]
2006-04-05 05:36:52 +00:00
Vladimir Prus
3b7c6068ea Fix LD_LIBRARY_PATH setting for 64-bit gcc.
[SVN r33521]
2006-03-29 15:20:08 +00:00
Vladimir Prus
b3c54cd894 Fix rpath and strip for OFS linker.
[SVN r33519]
2006-03-29 11:42:04 +00:00
Rene Rivera
9ce942b0c5 Fixes for MinGW compilation.
* Configuration prefers using the AR in the compiler specific bin dir.
* Fix pre-delete of archives so it uses it's own action, and hence allows the archive action to be a single command.
* That fixes the problem of command line limits on the CMD shell, for archives that have many source files.


[SVN r33475]
2006-03-26 06:28:51 +00:00
Vladimir Prus
6ab05a7bf9 Allow to explicitly specify root, in case where we have trouble auto-detecting
it from the compiler name.


[SVN r33453]
2006-03-23 08:35:37 +00:00
Vladimir Prus
cf030feb98 Don't append lib paths for all gcc version to a single RUN_PATH.
[SVN r33441]
2006-03-22 14:28:39 +00:00
Vladimir Prus
eea57fc3ca Fix making shared libraries on OSF with gcc.
Patch from Markus Schoepflin.


[SVN r33310]
2006-03-10 13:38:40 +00:00
Vladimir Prus
81d98a3522 Set RUN_PATH variable when linking with gcc, which allows the testing
rules (run/unit-test) to set LD_LIBRARY_PATH variables when running test.

This is to accomotate cases where gcc is installed in non-standard location,
and the path to that location is not in LD_LIBRARY_PATH, but the binaries
still want to link to libstdc++.


[SVN r33307]
2006-03-10 11:51:24 +00:00
Vladimir Prus
406f805b8d Make <warnings>on the default. Increase warning level options for
compiler for <warnings>all for gcc and intel.


[SVN r33306]
2006-03-10 11:29:31 +00:00
Vladimir Prus
3d403a1f5b Make sure that flags specified via cflags/cxxflags/linkflags are passed
after all flags added by V2 from features. This was, explicit
warnings disabling options will after -Wall on the command line and take
effect.


[SVN r33251]
2006-03-07 10:03:50 +00:00
Vladimir Prus
7b50c072b3 Cleanup generator overrides
[SVN r33055]
2006-02-21 08:18:22 +00:00
Vladimir Prus
d2f9daebca Resolve confict between builtin.lib-generator and $(toolset).prebuilt
in favour of the latter (toolset.prebuilt). This cuts down the number
of generator invocations for prebuilt target and is more clear.

Thanks to Mark Evans for pointing this out.


[SVN r32952]
2006-02-16 07:47:09 +00:00
Vladimir Prus
b49d4311d0 New features <warning> and <warnings-as-errors>.
Patch from Reece Dunn.


[SVN r31068]
2005-09-21 13:44:06 +00:00
Vladimir Prus
665d0b55dd On, windows, don't delete a static library if it does not exists.
The "del" command does not have a switch to prevent warning if file
does not exists, so need extra shell magic.


[SVN r31034]
2005-09-19 08:14:37 +00:00
Vladimir Prus
f392a1271e Remove the 'u' modifier from 'ar' invocation, which is not needed
now that we remove archive before invoking 'ar'.


[SVN r30768]
2005-09-01 08:04:48 +00:00
Vladimir Prus
905d44b656 Support assembler sources with gcc.
Patch from Craig Rodrigues.


[SVN r30406]
2005-08-03 13:33:45 +00:00
Vladimir Prus
4d6bfe4eef Rename link-runtime to runtime-link to stay compatible with V1.
[SVN r29586]
2005-06-15 12:24:06 +00:00
Vladimir Prus
5fab631f5d Further generators simplications.
1. If when generating something, we find more that one suitable generators,
   run them and more then one return something, immediately report ambiguity.
   Don't care if the produced targets are the same. This is better that
   running several generators all the time, performance wise.

2. Remove the notion of 'intermediate' virtual-targets. IIRC, they were used
   to prevent staging of RSP files, and we don't stage them anyway now.


[SVN r29491]
2005-06-09 08:12:21 +00:00
Vladimir Prus
f17a9b9616 Fix typo
[SVN r29373]
2005-06-02 12:04:45 +00:00
Vladimir Prus
ec4ad0c5b9 Make sure -fPIC is added when compiling objects declared with the 'obj' rule.
[SVN r29369]
2005-06-02 09:24:24 +00:00
Vladimir Prus
f31980afe7 Serialize execution of gcc.link.* actions when -j option is specifying.
Executing link actions in parallel hardly speeds up anything.


[SVN r27764]
2005-03-22 08:06:02 +00:00
Vladimir Prus
5ce1b6f825 For gcc, remove static lib before running 'ar', to avoid old files to
stay in the archive forever.


[SVN r27551]
2005-03-04 10:13:15 +00:00
Vladimir Prus
f3b1b11187 Fix thereading support on darwin -- don't add -lrt.
Patch from Pedro Ferreira.


[SVN r26585]
2004-12-27 09:23:25 +00:00
Vladimir Prus
27c7ab37fa Add explicit generator override to save work.
[SVN r26416]
2004-12-03 11:25:02 +00:00
Vladimir Prus
29985d877e Don't duplicate flags when two version of 'darwin' or 'intel-linux'
are configured.

* tools/gcc.jam (init-link-flags): New parameter 'toolset'.
* tools/darwin.jam (init): Move flags inheriting out of here
* tools/intel-linux.jam (init): Likewise.


[SVN r25817]
2004-10-21 08:13:34 +00:00
Vladimir Prus
b38c1978d3 Fixes related to init-link-flags
* tools/gcc.jam
   (init): passing $(condition) to init-link-flags
   (init-link-flags): now takes new condition parameter
                      moved common flags out of it
* tools/intel-linux.jam
   (init): moved call to inherit-flags into it because we need to call
           gcc.init-link-flags with the 'condition' parameter.
* tools/darwin.jam
   (init): moved call to inherit-flags into it because we need to call
           gcc.init-link-flags with the 'condition' parameter.

Fixes related to init-link-flags
* tools/gcc.jam
   (init): passing $(condition) to init-link-flags
   (init-link-flags): now takes new condition parameter
                      moved common flags out of it
* tools/intel-linux.jam
   (init): moved call to inherit-flags into it because we need to call
           gcc.init-link-flags with the 'condition' parameter.
* tools/darwin.jam
   (init): moved call to inherit-flags into it because we need to call
           gcc.init-link-flags with the 'condition' parameter.

Patch from Andre Hentz.


[SVN r25816]
2004-10-21 07:39:11 +00:00
Rene Rivera
74e63d39f7 Apply patches from Patrick Mauritz, with some changes, to account for DragonFly, a FreeBSD variant.
[SVN r25782]
2004-10-19 15:12:59 +00:00
Vladimir Prus
84f8d8f3aa Fix <xdll-path> on Solaris linker.
Patch from Andre Hentz.


[SVN r25780]
2004-10-19 06:26:45 +00:00
Vladimir Prus
18b96d9ce7 Make third 'init' parameter for all toolsets be 'options', so use can
write

   using gcc : ... : ... : <cxxflags>foo <linkflags>bar ;

* tools/common.jam (handle-options): The login for setting the common
options.


[SVN r25767]
2004-10-18 09:57:37 +00:00
Vladimir Prus
f0cf33f57f Changed syntax of 'using gcc', allowing configuration of linker-type
* v2/tools/gcc.jam
    (init): parse the new options and call the new rule.
    (init-link-flags): new rule. Initialize flags based on linker type.
              put back -minpure-text
* v2/test/conditionals.py
     small modification to avoid empty binaries.

Patch from Andre Hentz.


[SVN r25764]
2004-10-18 06:41:50 +00:00
Vladimir Prus
08bac7ef79 Library improvements:
lib png : z : <name>png ;
  lib z : : <name>z ;

now works: if you link to 'png' you'll also link to 'z'.

  lib png : z : <file>png.a ;
  lib z : : <file>z.a ;

now works too. The 'prebuilt.jam' modules which used to handle <file> for
all target kinds is now removed.


[SVN r25703]
2004-10-13 10:46:53 +00:00
Vladimir Prus
593ceeef79 Restore the gcc specific link generators.
* build/toolset.jam (inherit-generator): New parameter 'generators-to-ignore'.
* tools/gcc.jam: Ignore *link* generators when inheriting. Declare the
  gcc specific generator.
* test/gcc_runtime.py: Test that <link-runtime>static is correctly handled.
  The gcc specific generator is necessary exactly for that reason.


[SVN r25700]
2004-10-13 08:02:23 +00:00
Vladimir Prus
0ec36774c0 Move 'OPTION' to the end of link action for unix toolset.
In particular, this allows to explicitly link statically to some
libs, using <linkflags> feature. In static libs are specified at
the beginning of the command line, we'll just get link errors.


[SVN r25548]
2004-10-04 07:29:49 +00:00
Vladimir Prus
695e1c4691 * build/generators.jam: (select-alternative): Use string comparison
of virtual targets, not the deep one with the 'str' method. The latter is
very slow
* tools/gcc.jam: Don't declare gcc.link and gcc.link.dll generators, as
they are already inherited from unix.jam. If we declare them, then for
each targets, the whole generation process is run twice. As result,
select-alternative is called for each target, and due to sloweness of
'str' the performance is horrible.

The net result is that running time on one testcase is down from 1580 secs
to less than 10.


[SVN r25512]
2004-10-01 14:59:14 +00:00
Vladimir Prus
3265b13893 Don't try setting soname on NT. Current binutils seem to ignore the
option, but older report errors.


[SVN r25335]
2004-09-22 11:26:59 +00:00
Vladimir Prus
b18b2c6e0f Don't use -fPIC on windows.
[SVN r25304]
2004-09-21 13:40:38 +00:00
Vladimir Prus
8ba8f4eac4 Fix typo
[SVN r25031]
2004-09-13 08:50:11 +00:00
Vladimir Prus
deb051b849 Don't use -fPIC on CYGWIN.
[SVN r25007]
2004-09-10 13:17:46 +00:00
Vladimir Prus
3ca657177f Supress warnings from the 'ar' tool emitted on some platfroms when the
archive is created the first time.


[SVN r25005]
2004-09-10 12:48:18 +00:00
Vladimir Prus
64555a648f Allow specifying compiler and linker flags when intializing toolset.
[SVN r24972]
2004-09-08 14:33:04 +00:00