From 7a014a9494bcc52a8df53e333d51650d7dfcad0f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 17 May 2016 18:01:32 +0200 Subject: cmake: work for shared library destructors Remove linker script usage. I'm worried about the potential interaction with shared libraries' _fini symbol for global destruction. Further, add -fuse-cxa-atexit in order to run the global destructors to begin with. This works on LLVM and GNU. MSVC doesn't export symbols by default. --- opentrack-compat/mingw-version-script.txt | 8 -------- opentrack-compat/posix-version-script.txt | 8 -------- 2 files changed, 16 deletions(-) delete mode 100644 opentrack-compat/mingw-version-script.txt delete mode 100644 opentrack-compat/posix-version-script.txt (limited to 'opentrack-compat') diff --git a/opentrack-compat/mingw-version-script.txt b/opentrack-compat/mingw-version-script.txt deleted file mode 100644 index fe20ad37..00000000 --- a/opentrack-compat/mingw-version-script.txt +++ /dev/null @@ -1,8 +0,0 @@ -{ - global: - GetDialog?0; - GetConstructor?0; - GetMetadata?0; - local: - *; -}; diff --git a/opentrack-compat/posix-version-script.txt b/opentrack-compat/posix-version-script.txt deleted file mode 100644 index 97edb9aa..00000000 --- a/opentrack-compat/posix-version-script.txt +++ /dev/null @@ -1,8 +0,0 @@ -{ - global: - GetDialog; - GetConstructor; - GetMetadata; - local: - *; -}; \ No newline at end of file -- cgit v1.2.3