From 9ea973dad6ccf9464ad338b77e634d708671f794 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 9 Oct 2019 03:48:51 +0300 Subject: [PATCH] waifulib: xcompile: fix C++ with host toolchain --- scripts/waifulib/xcompile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/xcompile.py b/scripts/waifulib/xcompile.py index 4579ae6f..98516ce8 100644 --- a/scripts/waifulib/xcompile.py +++ b/scripts/waifulib/xcompile.py @@ -291,7 +291,7 @@ class Android: def ldflags(self): ldflags = ['-lgcc', '-no-canonical-prefixes'] - if self.is_clang(): + if self.is_clang() or self.is_host(): ldflags += ['-stdlib=libstdc++'] if self.is_arm(): if self.arch == 'armeabi-v7a':