1
0

syllable.cmake 1.4 KB

12345678910111213141516171819202122232425262728293031
  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
  10. SET(CMAKE_DL_LIBS "dl")
  11. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
  12. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
  13. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
  14. SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
  15. #SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
  16. # Initialize C link type selection flags. These flags are used when
  17. # building a shared library, shared module, or executable that links
  18. # to other libraries to select whether to use the static or shared
  19. # versions of the libraries.
  20. FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
  21. SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
  22. SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
  23. ENDFOREACH(type)
  24. INCLUDE(Platform/UnixPaths)
  25. # these are Syllable specific:
  26. LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /usr/indexes)