diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-11-02 10:56:32 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-11-02 10:56:32 +0000 |
commit | c054290535f0ddb816606fa45efb1262264bd411 (patch) | |
tree | 8eb2d666cadbb25584eaa26ffbdc4eccd3592b6d /fastos | |
parent | 8160443e8b62895c64bcf1e34380c609461e8ea9 (diff) |
Only require fastos where you actually use it and link statically
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fastos/src/vespa/fastos/CMakeLists.txt b/fastos/src/vespa/fastos/CMakeLists.txt index efa1bcb0c13..3d19d37d8e9 100644 --- a/fastos/src/vespa/fastos/CMakeLists.txt +++ b/fastos/src/vespa/fastos/CMakeLists.txt @@ -25,5 +25,32 @@ vespa_add_library(fastos DEPENDS ${CMAKE_DL_LIBS} ) +vespa_add_library(fastos_static STATIC + SOURCES + app.cpp + backtrace.c + file.cpp + linux_file.cpp + serversocket.cpp + socket.cpp + socketevent.cpp + thread.cpp + time.cpp + timestamp.cpp + unix_app.cpp + unix_cond.cpp + unix_dynamiclibrary.cpp + unix_file.cpp + unix_ipc.cpp + unix_mutex.cpp + unix_process.cpp + unix_socket.cpp + unix_thread.cpp + unix_time.cpp + INSTALL lib64 + DEPENDS + ${CMAKE_DL_LIBS} +) find_package(Threads REQUIRED) target_link_libraries(fastos PUBLIC ${CMAKE_THREAD_LIBS_INIT}) +target_link_libraries(fastos_static PUBLIC ${CMAKE_THREAD_LIBS_INIT}) |