Author: bonefish Date: 2009-12-28 01:06:11 +0100 (Mon, 28 Dec 2009) New Revision: 34787 Changeset: http://dev.haiku-os.org/changeset/34787/haiku Modified: haiku/trunk/build/jam/MainBuildRules Log: SharedLibrary: The soname of the library can now be set explicitly by setting the HAIKU_SONAME variable on the target. Modified: haiku/trunk/build/jam/MainBuildRules =================================================================== --- haiku/trunk/build/jam/MainBuildRules 2009-12-28 00:05:10 UTC (rev 34786) +++ haiku/trunk/build/jam/MainBuildRules 2009-12-28 00:06:11 UTC (rev 34787) @@ -411,9 +411,12 @@ return ; } + local soname = [ on $(_lib) return $(HAIKU_SONAME) ] ; + soname ?= $(_lib:BS) ; + MainFromObjects $(_lib) : $(2) ; LINKFLAGS on $(_lib) = [ on $(_lib) return $(LINKFLAGS) ] - -nostart -Xlinker -soname=\"$(_lib:G=)\" ; + -nostart -Xlinker -soname=\"$(soname)\" ; LinkAgainst $(_lib) : $(3) ; AddSharedObjectGlueCode $(_lib) : false ;