diff options
author | Jim Huang <jserv@0xlab.org> | 2011-11-05 02:24:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-07 11:22:41 +0800 |
commit | a6af8ae0d842ae50b3e824a76c03ff0f9029f7b1 (patch) | |
tree | 1433267369a0c2cdee15ee31e11eb5fc88bea94f /src/lookup | |
parent | e7087ceb62f26c74460519ff7afd60fb9c7300b9 (diff) | |
download | libpinyin-a6af8ae0d842ae50b3e824a76c03ff0f9029f7b1.tar.gz libpinyin-a6af8ae0d842ae50b3e824a76c03ff0f9029f7b1.tar.xz libpinyin-a6af8ae0d842ae50b3e824a76c03ff0f9029f7b1.zip |
CMake: add -fPIC flag to combine static libraries to dynamic one
Machines running Linux on architectures such as amd64 require flag
"-fPIC" to be specified to compile shared libraries, and it would
be helpful to have this a default for CMake when building libpinyin.
Diffstat (limited to 'src/lookup')
-rw-r--r-- | src/lookup/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lookup/CMakeLists.txt b/src/lookup/CMakeLists.txt index bb5b8ba..bd29b4a 100644 --- a/src/lookup/CMakeLists.txt +++ b/src/lookup/CMakeLists.txt @@ -1,4 +1,8 @@ set( + CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" +) + +set( LIBLOOKUP_HEADERS lookup.h pinyin_lookup.h |