summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
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/Compiler
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/Compiler')
-rw-r--r--Modules/Compiler/TinyCC-C.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/TinyCC-C.cmake b/Modules/Compiler/TinyCC-C.cmake
new file mode 100644
index 0000000..bb27ead
--- /dev/null
+++ b/Modules/Compiler/TinyCC-C.cmake
@@ -0,0 +1 @@
+SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")