Add dl to linked libraries.

More info here: http://stackoverflow.com/a/10368706/123545
This commit is contained in:
Jason Bosco 2017-03-30 21:25:14 -07:00
parent 8efe35df1a
commit 0a99fd11c0
2 changed files with 10 additions and 2 deletions

View File

@ -51,7 +51,7 @@ target_compile_definitions(search PRIVATE ROOT_DIR="${CMAKE_SOURCE_DIR}/")
target_compile_definitions(benchmark PRIVATE ROOT_DIR="${CMAKE_SOURCE_DIR}/")
target_compile_definitions(typesense_test PRIVATE ROOT_DIR="${CMAKE_SOURCE_DIR}/")
target_link_libraries(typesense-server for h2o-evloop pthread rocksdb ssl crypto)
target_link_libraries(typesense-server for h2o-evloop pthread rocksdb ssl crypto dl)
target_link_libraries(search for pthread rocksdb)
target_link_libraries(benchmark for pthread rocksdb)
target_link_libraries(typesense_test pthread for rocksdb gtest gtest_main)

View File

@ -14,7 +14,15 @@ Typesense is an open source search engine for building a delightful search exper
Please ensure that you have docker installed on your system.
```
$ ./build.sh
$ ./build.sh [--clean]
.
.
.
$ ./dockcross build/typesense_test
.
.
.
$ ./dockcross build/typesense-server
```
We use [dockcross](https://github.com/dockcross/dockcross) to build our development environment consistently.