当前位置: 代码迷 >> 综合 >> (native:platform) should not link to libxxx (native:vendor)
  详细解决方案

(native:platform) should not link to libxxx (native:vendor)

热度:15   发布时间:2024-01-21 19:24:33.0

system/core/init/Android.mk: error: init (native:platform) should not link to libdrm (native:vendor)
system/core/init/Android.mk: error: init (native:platform) should not link to libkms (native:vendor)

 

出现这种报错修改

build/make/

 

diff --git a/core/link_type.mk b/core/link_type.mk
index f7604ff..3b3d67a 100644
--- a/core/link_type.mk
+++ b/core/link_type.mk
@@ -21,7 +21,7 @@ $(link_type).DEPS := $(addprefix $(my_link_prefix):,$(my_link_deps))$(link_type).BUILT := $(LOCAL_BUILT_MODULE)link_type :=
-my_allowed_types :=
+my_allowed_types :=native:vendormy_link_prefix :=
-my_link_type :=
+my_link_type :=native:vendormy_warn_types :=

 

  相关解决方案