From 39571e206e3cd7f7539fd2bafa08ab22e3a27f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20S=C3=B6der?= Date: Sat, 11 Oct 2025 13:46:51 +0200 Subject: [PATCH] Make it easier to control symbol exports By not hardcoding RDYNAMIC it's possible to control exporting from the commandline on platforms/compilers that don't support -rdynamic. --- Makefile | 2 +- tools/dmake/dmake.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8dda00a2096..7bc55f4349b 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ ifdef FILESDIR override CPPFLAGS+=-DFILESDIR=\"$(FILESDIR)\" endif -RDYNAMIC=-rdynamic +RDYNAMIC?=-rdynamic # Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles. # The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems. ifndef COMSPEC diff --git a/tools/dmake/dmake.cpp b/tools/dmake/dmake.cpp index ac7bbb7faaf..740b265d6c5 100644 --- a/tools/dmake/dmake.cpp +++ b/tools/dmake/dmake.cpp @@ -621,7 +621,7 @@ int main(int argc, char **argv) << "endif\n\n"; // enable backtrac - fout << "RDYNAMIC=-rdynamic\n"; + fout << "RDYNAMIC?=-rdynamic\n"; // The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems. fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"