Moved --no-undefined flag addition to AddSharedObjectGlueCode where it
is added in case of target platform haiku only. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,7 +30,8 @@ rule AddSharedObjectGlueCode
|
|||||||
|
|
||||||
NEEDLIBS on $(1) = [ on $(1) return $(NEEDLIBS) ] $(stdLibs) ;
|
NEEDLIBS on $(1) = [ on $(1) return $(NEEDLIBS) ] $(stdLibs) ;
|
||||||
Depends $(1) : $(stdLibs) $(beginGlue) $(endGlue) ;
|
Depends $(1) : $(stdLibs) $(beginGlue) $(endGlue) ;
|
||||||
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib ;
|
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] -nostdlib
|
||||||
|
-Xlinker --no-undefined ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ rule Executable
|
|||||||
Main $(1) : $(2) ;
|
Main $(1) : $(2) ;
|
||||||
LinkAgainst $(1) : $(3) ;
|
LinkAgainst $(1) : $(3) ;
|
||||||
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ]
|
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ]
|
||||||
-Xlinker --no-undefined -Xlinker -soname=_APP_ ;
|
-Xlinker -soname=_APP_ ;
|
||||||
|
|
||||||
# we link with -nostdlib and add the required libs manually, when building
|
# we link with -nostdlib and add the required libs manually, when building
|
||||||
# for Haiku
|
# for Haiku
|
||||||
@@ -112,8 +113,7 @@ rule Addon target : sources : libraries : isExecutable
|
|||||||
|
|
||||||
Main $(target) : $(sources) ;
|
Main $(target) : $(sources) ;
|
||||||
|
|
||||||
local linkFlags = -Xlinker --no-undefined
|
local linkFlags = -Xlinker -soname=\"$(target:G=)\" ;
|
||||||
-Xlinker -soname=\"$(target:G=)\" ;
|
|
||||||
if $(isExecutable) != true {
|
if $(isExecutable) != true {
|
||||||
linkFlags = -nostart $(linkFlags) ;
|
linkFlags = -nostart $(linkFlags) ;
|
||||||
}
|
}
|
||||||
@@ -398,7 +398,7 @@ rule SharedLibraryFromObjects
|
|||||||
|
|
||||||
MainFromObjects $(_lib) : $(2) ;
|
MainFromObjects $(_lib) : $(2) ;
|
||||||
LINKFLAGS on $(_lib) = [ on $(_lib) return $(LINKFLAGS) ]
|
LINKFLAGS on $(_lib) = [ on $(_lib) return $(LINKFLAGS) ]
|
||||||
-nostart -Xlinker --no-undefined -Xlinker -soname=\"$(_lib:G=)\" ;
|
-nostart -Xlinker -soname=\"$(_lib:G=)\" ;
|
||||||
LinkAgainst $(_lib) : $(3) ;
|
LinkAgainst $(_lib) : $(3) ;
|
||||||
|
|
||||||
AddSharedObjectGlueCode $(_lib) : false ;
|
AddSharedObjectGlueCode $(_lib) : false ;
|
||||||
|
|||||||
Reference in New Issue
Block a user