build: switch from link option -nostart to -shared for addons and libs.

* they are interchangeable in GCC 2 and 4.6.
This commit is contained in:
Jérôme Duval 2013-04-24 20:27:55 +02:00
parent 26b2423794
commit 6b40eddef7

View File

@ -115,7 +115,7 @@ rule Addon target : sources : libraries : isExecutable
local linkFlags = -Xlinker -soname=\"$(target:G=)\" ;
if $(isExecutable) != true {
linkFlags = -nostart $(linkFlags) ;
linkFlags = -shared $(linkFlags) ;
}
LINKFLAGS on $(target) = [ on $(target) return $(LINKFLAGS) ] $(linkFlags) ;
LinkAgainst $(target) : $(libraries) ;
@ -421,7 +421,7 @@ rule SharedLibraryFromObjects
MainFromObjects $(_lib) : $(2) ;
LINKFLAGS on $(_lib) = [ on $(_lib) return $(LINKFLAGS) ]
-nostart -Xlinker -soname=\"$(soname)\" ;
-shared -Xlinker -soname=\"$(soname)\" ;
LinkAgainst $(_lib) : $(3) ;
AddSharedObjectGlueCode $(_lib) : false ;