1 # this is the platform file for the Syllable OS (http://www.syllable.org)
2 # Syllable is a free OS (GPL), which is mostly POSIX conform
3 # the linker accepts the rpath related arguments, but this is later on
4 # ignored by the runtime linker
5 # shared libs are found exclusively via the environment variable DLL_PATH,
6 # which may contain also dirs containing the special variable @bindir@
7 # by default @bindir@/lib is part of DLL_PATH
8 # in order to run the cmake tests successfully it is required that also
9 # @bindir@/. and @bindir@/../lib are in DLL_PATH
12 SET(CMAKE_DL_LIBS "dl")
13 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
14 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
15 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
16 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
17 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
18 #SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
19 #SET(CMAKE_EXE_EXPORTS_CXX_FLAG "-Wl,--export-dynamic")
21 # Initialize C link type selection flags. These flags are used when
22 # building a shared library, shared module, or executable that links
23 # to other libraries to select whether to use the static or shared
24 # versions of the libraries.
25 FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
26 SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
27 SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
30 INCLUDE(Platform/UnixPaths)
32 # these are Syllable specific:
33 LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /usr/indexes)