gbuild: remove SOVERSION variable since it is hardcoded anyway
Change-Id: I625291ea86c1c3caf7fa5400e380defa6d0d0bc8
This commit is contained in:
@@ -53,7 +53,6 @@ ifeq (,$$(findstring $(1),$$(gb_Library_KNOWNLIBS)))
|
||||
$$(eval $$(call gb_Output_info,Currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL))
|
||||
$$(eval $$(call gb_Output_error,Library $(1) must be registered in Repository.mk))
|
||||
endif
|
||||
$(call gb_Library_get_target,$(1)) : SOVERSION :=
|
||||
|
||||
$(if $(gb_Package_PRESTAGEDIR),\
|
||||
$(if $(wildcard $(gb_Package_PRESTAGEDIR)/$(call gb_Library_get_instdir,$(1))/$(call gb_Library_get_runtime_filename,$(1))),\
|
||||
@@ -130,7 +129,6 @@ endef
|
||||
|
||||
define gb_Library__set_soversion_script
|
||||
$(call gb_LinkTarget_set_soversion_script,$(call gb_Library_get_linktarget,$(1)),$(2))
|
||||
$(call gb_Library_get_target,$(1)) : SOVERSION := $(gb_Library_UDK_MAJORVER)
|
||||
$(call gb_Library__add_soversion_link,$(1),$(call gb_Library_get_workdir_target_versionlink,$(1)))
|
||||
|
||||
endef
|
||||
|
@@ -448,7 +448,7 @@ define gb_LinkTarget__command_impl
|
||||
$(if $(filter $(true),$(call gb_LinkTarget__is_build_lib,$(2))),\
|
||||
$(call gb_LinkTarget__command,$(1),$(2)),\
|
||||
mkdir -p $(dir $(1)) && echo invalid > $(1) \
|
||||
$(if $(SOVERSION),&& echo invalid > $(basename $(1)))),\
|
||||
$(if $(SOVERSIONSCRIPT),&& echo invalid > $(basename $(1)))),\
|
||||
$(call gb_LinkTarget__command,$(1),$(2)))
|
||||
$(call gb_LinkTarget__command_objectlist,$(WORKDIR)/LinkTarget/$(2).objectlist)
|
||||
endef
|
||||
@@ -580,7 +580,6 @@ $(call gb_LinkTarget_get_target,$(1)) : EXTRAOBJECTLISTS :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : NATIVERES :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : VISIBILITY :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : WARNINGS_NOT_ERRORS :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : SOVERSION :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : SOVERSIONSCRIPT :=
|
||||
|
||||
ifeq ($(gb_FULLDEPS),$(true))
|
||||
@@ -607,7 +606,6 @@ $(call gb_LinkTarget_get_dep_target,$(1)) : PCH_NAME :=
|
||||
$(call gb_LinkTarget_get_dep_target,$(1)) : EXTRAOBJECTLISTS :=
|
||||
$(call gb_LinkTarget_get_dep_target,$(1)) : VISIBILITY :=
|
||||
$(call gb_LinkTarget_get_dep_target,$(1)) : WARNINGS_NOT_ERRORS :=
|
||||
$(call gb_LinkTarget_get_dep_target,$(1)) : SOVERSION :=
|
||||
$(call gb_LinkTarget_get_dep_target,$(1)) : SOVERSIONSCRIPT :=
|
||||
endif
|
||||
|
||||
@@ -618,7 +616,6 @@ endef
|
||||
# call gb_LinkTarget_set_soversion_script,linktarget,soversionscript
|
||||
define gb_LinkTarget_set_soversion_script
|
||||
$(call gb_LinkTarget_get_target,$(1)) : $(2)
|
||||
$(call gb_LinkTarget_get_target,$(1)) : SOVERSION := $(gb_Library_UDK_MAJORVER)
|
||||
$(call gb_LinkTarget_get_target,$(1)) : SOVERSIONSCRIPT := $(2)
|
||||
|
||||
endef
|
||||
|
@@ -153,7 +153,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(LIBS) \
|
||||
$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
|
||||
-o $(1) && \
|
||||
$(if $(SOVERSION),ln -sf $(notdir $(1)) $(ILIBTARGET),:) && \
|
||||
$(if $(SOVERSIONSCRIPT),ln -sf $(notdir $(1)) $(ILIBTARGET),:) && \
|
||||
$(if $(filter Executable,$(TARGETTYPE)), \
|
||||
$(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl app $(LAYER) $(1) &&) \
|
||||
$(if $(filter Library Bundle CppunitTest,$(TARGETTYPE)),\
|
||||
|
@@ -172,8 +172,8 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(if $(CXXOBJECTS)$(GENCXXOBJECTS)$(EXTRAOBJECTLISTS),$(gb_CXX),$(gb_CC)) \
|
||||
$(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
|
||||
$(if $(filter-out $(foreach lib,frm scfilt wpftdraw,$(call gb_Library__get_workdir_linktargetname,$(lib))),$(2)),$(gb_LTOFLAGS)) \
|
||||
$(if $(SOVERSION),-Wl$(COMMA)--soname=$(notdir $(1))) \
|
||||
$(if $(SOVERSIONSCRIPT),-Wl$(COMMA)--version-script=$(SOVERSIONSCRIPT))\
|
||||
$(if $(SOVERSIONSCRIPT),-Wl$(COMMA)--soname=$(notdir $(1)) \
|
||||
-Wl$(COMMA)--version-script=$(SOVERSIONSCRIPT)) \
|
||||
$(subst \d,$$,$(RPATH)) \
|
||||
$(T_LDFLAGS) \
|
||||
$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
|
||||
@@ -187,7 +187,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(LIBS) \
|
||||
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \
|
||||
-o $(1) \
|
||||
$(if $(SOVERSION),&& ln -sf $(notdir $(1)) $(ILIBTARGET)) \
|
||||
$(if $(SOVERSIONSCRIPT),&& ln -sf $(notdir $(1)) $(ILIBTARGET)) \
|
||||
$(if $(filter Library,$(TARGETTYPE)),&& \
|
||||
readelf -d $(1) | grep SONAME > $(1).exports.tmp ; \
|
||||
$(NM) --dynamic --extern-only --defined-only --format=posix $(1) \
|
||||
|
@@ -174,8 +174,8 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(if $(CXXOBJECTS)$(GENCXXOBJECTS)$(EXTRAOBJECTLISTS),$(gb_CXX),$(gb_CC)) \
|
||||
$(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
|
||||
$(if $(filter-out $(foreach lib,frm scfilt wpftdraw,$(call gb_Library__get_workdir_linktargetname,$(lib))),$(2)),$(gb_LTOFLAGS)) \
|
||||
$(if $(SOVERSION),-Wl$(COMMA)--soname=$(notdir $(1))) \
|
||||
$(if $(SOVERSIONSCRIPT),-Wl$(COMMA)--version-script=$(SOVERSIONSCRIPT))\
|
||||
$(if $(SOVERSIONSCRIPT),-Wl$(COMMA)--soname=$(notdir $(1)) \
|
||||
-Wl$(COMMA)--version-script=$(SOVERSIONSCRIPT)) \
|
||||
$(subst \d,$$,$(RPATH)) \
|
||||
$(T_LDFLAGS) \
|
||||
$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
|
||||
@@ -189,7 +189,7 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(LIBS) \
|
||||
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \
|
||||
-o $(1) \
|
||||
$(if $(SOVERSION),&& ln -sf $(notdir $(1)) $(ILIBTARGET)) \
|
||||
$(if $(SOVERSIONSCRIPT),&& ln -sf $(notdir $(1)) $(ILIBTARGET)) \
|
||||
$(if $(filter Library,$(TARGETTYPE)),&& \
|
||||
readelf -d $(1) | grep SONAME > $(1).exports.tmp ; \
|
||||
$(NM) --dynamic --extern-only --defined-only --format=posix $(1) \
|
||||
|
Reference in New Issue
Block a user