diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-11-02 13:16:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 13:16:40 +0100 |
commit | 8e1372f83d9816f1b7bb54307e96cba4dcc13eb3 (patch) | |
tree | 941f1e6e217f246a9663259b69a19f0c6a995c23 /fastos | |
parent | c743f5bb3f3b47529d90f639bf537b9dbe20cd6b (diff) | |
parent | c054290535f0ddb816606fa45efb1262264bd411 (diff) |
Merge pull request #994 from yahoo/balder/splitfile-should-not-require-fastos
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}) |