mirror of
https://github.com/boostorg/build.git
synced 2026-02-17 13:42:14 +00:00
removed Aix-Implib-Action and added '-G' flag to link shared libraries on AIX
[SVN r21528]
This commit is contained in:
@@ -317,7 +317,7 @@ else if $(UNIX)
|
||||
{
|
||||
case AIX :
|
||||
IMPLIB_FLAGS ?= -bI: ;
|
||||
SUFDLL ?= .so .imp ;
|
||||
SUFDLL ?= .so ;
|
||||
gLINK_VARIABLE(.so) = NEEDLIBS ; # shared libs should be added to the list of libs needed
|
||||
gLINK_VARIABLE(.imp) = NEEDIMPS ; # import libs are handled separately.
|
||||
gSHELL_LIBPATH = LIBPATH ;
|
||||
|
||||
@@ -218,26 +218,11 @@ rule Link-DLL
|
||||
if $(UNIX)
|
||||
{
|
||||
LINK_LIBPATH on $(<) = [ join $(gRUN_LD_LIBRARY_PATH($(<))) : $(SPLITPATH) ] ;
|
||||
|
||||
if $(OS) = AIX
|
||||
{
|
||||
Aix-Implib-Action $(<) : $(>) ;
|
||||
}
|
||||
}
|
||||
|
||||
return [ .do-link $(<) : $(>) : DLL ] ;
|
||||
}
|
||||
|
||||
rule Aix-Implib-Action
|
||||
{
|
||||
SPACE on $(<) = " " ;
|
||||
}
|
||||
|
||||
actions Aix-Implib-Action bind import-generator-script
|
||||
{
|
||||
"$(BOOST_ROOT)/tools/build/v1/gen_aix_import_file.py" $(<[1]:BD=) $(>:D=) "-directory=$(<[1]:D)" -verbose=1
|
||||
}
|
||||
|
||||
# store the shell's PATH again, just in case someone uses PATH.
|
||||
# This also allows the user to customize the base path for running built
|
||||
# products from the command-line
|
||||
|
||||
@@ -39,6 +39,7 @@ flags vacpp C++FLAGS : -qfuncsect ;
|
||||
# libraries. Please note that this means that a static constructor
|
||||
# contained in such an object file won't be invoked.
|
||||
flags vacpp LINKFLAGS : -qtwolink ;
|
||||
flags vacpp LINKFLAGS <target-type>$(SHARED_TYPES) : -G ;
|
||||
|
||||
flags vacpp CFLAGS <optimization>off : -qNOOPTimize ;
|
||||
flags vacpp CFLAGS <optimization>default : -O ;
|
||||
|
||||
Reference in New Issue
Block a user