summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-02 15:22:44 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-02 15:23:48 (GMT)
commitec636e299ff1b74457dc4fa306cbd9f33fabce9e (patch)
tree32920f2004902c0d48d0553296e64ec57ba452a1 /Modules/Platform
parent1f49d725abf458070db063b81dd7093a00835274 (diff)
downloadCMake-ec636e299ff1b74457dc4fa306cbd9f33fabce9e.zip
CMake-ec636e299ff1b74457dc4fa306cbd9f33fabce9e.tar.gz
CMake-ec636e299ff1b74457dc4fa306cbd9f33fabce9e.tar.bz2
TinyCC: Add compiler info for shared libs on Linux (#12605)
Use the "-shared" option to link shared libraries. The compiler does not support "-Wl," or "-rpath" but does know how to pass "-soname" through to the linker.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Linux-TinyCC-C.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-TinyCC-C.cmake b/Modules/Platform/Linux-TinyCC-C.cmake
new file mode 100644
index 0000000..b753268
--- /dev/null
+++ b/Modules/Platform/Linux-TinyCC-C.cmake
@@ -0,0 +1,4 @@
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "")
+SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "")
+SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-soname ")