mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
android-tools: build without gold
The android-tools recipe has been using gold linker to create executables. Recently OE-Core has dropped support for the gold linker, which is now causing build errors for the android-tools recipe. Update the build-system patch in order to stop using gold for linking. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
40682626c3
commit
d54a6102d8
@@ -89,6 +89,14 @@ index 9769b68ab793..58c9a63bd225 100644
|
||||
-Iexternal/boringssl/include \
|
||||
-Isystem/core/adb \
|
||||
-Isystem/core/base/include \
|
||||
@@ -28,7 +27,6 @@ CPPFLAGS += \
|
||||
LDFLAGS += \
|
||||
-Ldebian/out/system/core \
|
||||
-Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
|
||||
- -fuse-ld=gold \
|
||||
-lbase \
|
||||
-lcutils \
|
||||
-lpthread \
|
||||
diff --git a/debian/system/core/append2simg.mk b/debian/system/core/append2simg.mk
|
||||
index 1599bdb8..598c751d 100644
|
||||
--- a/debian/system/core/append2simg.mk
|
||||
@@ -114,15 +122,16 @@ index d5c9a285..a59ba1a4 100644
|
||||
-Iexternal/boringssl/include \
|
||||
-Iexternal/avb \
|
||||
-Isystem/core/adb \
|
||||
@@ -49,7 +49,7 @@ CPPFLAGS += \
|
||||
@@ -49,8 +48,7 @@ CPPFLAGS += \
|
||||
|
||||
LDFLAGS += \
|
||||
-Ldebian/out/system/core \
|
||||
- -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
|
||||
- -fuse-ld=gold \
|
||||
+ -Wl,-rpath='$$ORIGIN/../lib/android' \
|
||||
-fuse-ld=gold \
|
||||
-lbase \
|
||||
-lcutils \
|
||||
-lpthread \
|
||||
diff --git a/debian/system/core/img2simg.mk b/debian/system/core/img2simg.mk
|
||||
index 11adf014..8baf5ba5 100644
|
||||
--- a/debian/system/core/img2simg.mk
|
||||
|
||||
Reference in New Issue
Block a user