From 328496a6f5bee5ec99f4d5de057cabed26bde7a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Oct 2019 15:06:02 +0200 Subject: Only use -rdynamic (for backtrace support) on Linux if using glibc --- build2/buildfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build2') diff --git a/build2/buildfile b/build2/buildfile index 44ec2a8..fb74968 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -27,7 +27,8 @@ if ($cxx.target.class != 'windows') { # Make sure backtrace includes function names. # - cxx.loptions += -rdynamic + if ($cc.stdlib == 'glibc') + cxx.loptions += -rdynamic # Make sure we use RPATH and not RUNPATH since the latter messes up # dlopen(). -- cgit v1.1