Revert "install *.so in different paths for their types"
This reverts commit 842a985f90497d9790954003e60faa7f0f7785d4. It's
causing test failures, warnings and complaints, so backing it out and
we'll resolve those before putting it back in.
This also bundles in the revert of a minor warning/error fixup for this
code, and does the correct thing with the CleanSpec.mk (which can't just
be reverted).
Bug: 33681361
Test: m -j
Change-Id: Ic889ce6a4737a497ad6bf633424ce1860713f7d0
diff --git a/core/definitions.mk b/core/definitions.mk
index aae269b..1a7cc50 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2845,10 +2845,8 @@
# Define a rule to create a symlink to a file.
# $(1): full path to source
-# $(2): target of the link
-# $(3): full path of the symlink
-# $(4): (optional) when set to true, $(2) is recognized as a path from the build root and
-# thus -r option is used to link $(3) to $(2). Off by default.
+# $(2): source (may be relative)
+# $(3): full path to destination
define symlink-file
$(eval $(_symlink-file))
endef
@@ -2860,9 +2858,7 @@
@echo "Symlink: $$@ -> $(2)"
@mkdir -p $(dir $$@)
@rm -rf $$@
- $(if $(filter true,$(4)),\
- $(hide) python -c "import os.path; import os; os.symlink(os.path.relpath('$(2)','$(dir $(3))'), '$$@')",\
- $(hide) ln -sf $(2) $$@)
+ $(hide) ln -sf $(2) $$@
endef
###########################################################