aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-29 15:06:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-29 15:06:02 +0200
commit328496a6f5bee5ec99f4d5de057cabed26bde7a9 (patch)
treedb9ea7a26b9d7d8ce8341c2571603ecd2a8d46b4
parente5d4c47040e526f0302a53c75ccf1f8c3f5981a1 (diff)
Only use -rdynamic (for backtrace support) on Linux if using glibc
-rw-r--r--build2/buildfile3
1 files changed, 2 insertions, 1 deletions
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().