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"