summaryrefslogtreecommitdiff
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-02 10:22:44 -0500
committerBrad King <brad.king@kitware.com>2011-12-02 10:23:48 -0500
commitec636e299ff1b74457dc4fa306cbd9f33fabce9e (patch)
tree32920f2004902c0d48d0553296e64ec57ba452a1 /Modules/Compiler
parent1f49d725abf458070db063b81dd7093a00835274 (diff)
downloadcmake-ec636e299ff1b74457dc4fa306cbd9f33fabce9e.tar.gz
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 0000000000..bb27eadde4
--- /dev/null
+++ b/Modules/Compiler/TinyCC-C.cmake
@@ -0,0 +1 @@
+SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")