Skip to content

Commit 97dfca9

Browse files
authored
Make it easier to control symbol exports (#7877)
By not hardcoding RDYNAMIC it's possible to control exporting from the commandline on platforms/compilers that don't support -rdynamic.
1 parent cded51e commit 97dfca9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ifdef FILESDIR
4343
override CPPFLAGS+=-DFILESDIR=\"$(FILESDIR)\"
4444
endif
4545

46-
RDYNAMIC=-rdynamic
46+
RDYNAMIC?=-rdynamic
4747
# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.
4848
# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.
4949
ifndef COMSPEC

tools/dmake/dmake.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ int main(int argc, char **argv)
621621
<< "endif\n\n";
622622

623623
// enable backtrac
624-
fout << "RDYNAMIC=-rdynamic\n";
624+
fout << "RDYNAMIC?=-rdynamic\n";
625625

626626
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
627627
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"

0 commit comments

Comments
 (0)