The Executable and Addon rules also use --no-undefined, now. Apparently
-nostdlib disables that for executables although it should be enabled by default. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25785 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2a33a944e5
commit
7870b77c18
@ -52,7 +52,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 -soname=_APP_ ;
|
-Xlinker --no-undefined -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,7 +112,8 @@ rule Addon target : sources : libraries : isExecutable
|
|||||||
|
|
||||||
Main $(target) : $(sources) ;
|
Main $(target) : $(sources) ;
|
||||||
|
|
||||||
local linkFlags = -Xlinker -soname=\"$(target:G=)\" ;
|
local linkFlags = -Xlinker --no-undefined
|
||||||
|
-Xlinker -soname=\"$(target:G=)\" ;
|
||||||
if $(isExecutable) != true {
|
if $(isExecutable) != true {
|
||||||
linkFlags = -nostart $(linkFlags) ;
|
linkFlags = -nostart $(linkFlags) ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user