2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Beef up 'init'

[SVN r23167]
This commit is contained in:
Vladimir Prus
2004-06-23 09:12:43 +00:00
parent 1e6096c1a2
commit e4d86166f9

View File

@@ -10,6 +10,7 @@
import feature : feature ;
import toolset : flags ;
import type ;
import common ;
toolset.register darwin ;
import gcc ;
@@ -22,9 +23,12 @@ toolset.inherit-rules darwin : gcc ;
flags darwin.link ST_OPTIONS <debug-symbols>off : -s ;
# No additional initialization should be necessary
rule init ( )
rule init ( version ? : command ? )
{
local condition = [ common.check-init-parameters darwin : version $(version) ] ;
local command = [ common.get-invocation-command darwin : g++ : $(command) ] ;
flags darwin CONFIG_COMMAND $(condition) : $(command) ;
}
# Darwin has a different shared library suffix
@@ -46,7 +50,7 @@ flags darwin.link FRAMEWORK <framework> ;
actions link bind LIBRARIES
{
$(NAME:E=g++) $(ST_OPTIONS) $(OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) -framework$(_)$(FRAMEWORK)
$(CONFIG_COMMAND) $(ST_OPTIONS) $(OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) -framework$(_)$(FRAMEWORK)
}
rule link.dll
@@ -56,7 +60,7 @@ rule link.dll
actions link.dll bind LIBRARIES
{
$(NAME:E=g++) -dynamiclib $(OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) -framework$(_)$(FRAMEWORK)
$(CONFIG_COMMAND) -dynamiclib $(OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) -framework$(_)$(FRAMEWORK)
}
actions piecemeal archive