From 872243be563661fea47d1fe13873a9b8df3a13e9 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 15 Aug 2022 22:37:56 +0300 Subject: [PATCH] waifulib: fix configure with clang --- scripts/waifulib/xcompile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/waifulib/xcompile.py b/scripts/waifulib/xcompile.py index a5767c01..074f01bc 100644 --- a/scripts/waifulib/xcompile.py +++ b/scripts/waifulib/xcompile.py @@ -299,7 +299,10 @@ class Android: return linkflags def ldflags(self): - ldflags = ['-lgcc', '-no-canonical-prefixes'] + ldflags = ['-no-canonical-prefixes'] + if not self.is_clang(): + ldflags += ['-lgcc'] + if self.is_clang() or self.is_host(): ldflags += ['-stdlib=libstdc++'] if self.is_arm():