From ec636e299ff1b74457dc4fa306cbd9f33fabce9e Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 2 Dec 2011 10:22:44 -0500 Subject: 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. --- Modules/Compiler/TinyCC-C.cmake | 1 + Modules/Platform/Linux-TinyCC-C.cmake | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 Modules/Compiler/TinyCC-C.cmake create mode 100644 Modules/Platform/Linux-TinyCC-C.cmake 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") 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 ") -- cgit v0.12