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:
Ingo Weinhold 2008-06-03 15:13:33 +00:00
parent 2a33a944e5
commit 7870b77c18

View File

@ -52,7 +52,7 @@ rule Executable
Main $(1) : $(2) ;
LinkAgainst $(1) : $(3) ;
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
# for Haiku
@ -112,7 +112,8 @@ rule Addon target : sources : libraries : isExecutable
Main $(target) : $(sources) ;
local linkFlags = -Xlinker -soname=\"$(target:G=)\" ;
local linkFlags = -Xlinker --no-undefined
-Xlinker -soname=\"$(target:G=)\" ;
if $(isExecutable) != true {
linkFlags = -nostart $(linkFlags) ;
}