mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
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.
This commit is contained in:
parent
1f49d725ab
commit
ec636e299f
1
Modules/Compiler/TinyCC-C.cmake
Normal file
1
Modules/Compiler/TinyCC-C.cmake
Normal file
@ -0,0 +1 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
|
4
Modules/Platform/Linux-TinyCC-C.cmake
Normal file
4
Modules/Platform/Linux-TinyCC-C.cmake
Normal file
@ -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 ")
|
Loading…
Reference in New Issue
Block a user