diff options
author | Aleric Inglewood | 2010-11-07 16:55:50 +0100 |
---|---|---|
committer | Aleric Inglewood | 2010-11-07 18:27:48 +0100 |
commit | 5b4356cefbaa7dbdc8656e7283c110a893b1a89c (patch) | |
tree | 43fae9945562c3281746370d623877840ed884b2 /linden/indra/llcommon/CMakeLists.txt | |
parent | IMP-688: ERROR: getString: Invalid string control nick01 (diff) | |
download | meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.zip meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.gz meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.bz2 meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.xz |
IMP-692: SNOW-713: Global objects in libllcommon duplicated in plugins
See http://jira.secondlife.com/browse/SNOW-713
This patch makes llcommon shared. It contains the following snowglobe
(SVN) changesets: 3478, 3479, 3480, 3481, 3482, 3485, 3496, 3498, 3500,
3519 and 3531, plus the fix for all rejects. Note that changes
to scripts/automated_build_scripts/opensrc-build.sh (changesets 3500
and 3625) were ignored as we don't have scripts/automated_build_scripts.
Diffstat (limited to 'linden/indra/llcommon/CMakeLists.txt')
-rw-r--r-- | linden/indra/llcommon/CMakeLists.txt | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/linden/indra/llcommon/CMakeLists.txt b/linden/indra/llcommon/CMakeLists.txt index 7d001ae..5d590a9 100644 --- a/linden/indra/llcommon/CMakeLists.txt +++ b/linden/indra/llcommon/CMakeLists.txt | |||
@@ -4,6 +4,7 @@ project(llcommon) | |||
4 | 4 | ||
5 | include(00-Common) | 5 | include(00-Common) |
6 | include(LLCommon) | 6 | include(LLCommon) |
7 | include(Linking) | ||
7 | 8 | ||
8 | include_directories( | 9 | include_directories( |
9 | ${EXPAT_INCLUDE_DIRS} | 10 | ${EXPAT_INCLUDE_DIRS} |
@@ -192,31 +193,13 @@ set_source_files_properties(${llcommon_HEADER_FILES} | |||
192 | 193 | ||
193 | list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES}) | 194 | list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES}) |
194 | 195 | ||
195 | add_library (llcommon ${llcommon_SOURCE_FILES}) | 196 | add_library (llcommon SHARED ${llcommon_SOURCE_FILES}) |
196 | target_link_libraries( | 197 | target_link_libraries( |
197 | llcommon | 198 | llcommon |
198 | ${APRUTIL_LIBRARIES} | 199 | ${APRUTIL_LIBRARIES} |
199 | ${APR_LIBRARIES} | 200 | ${APR_LIBRARIES} |
200 | ${EXPAT_LIBRARIES} | 201 | ${EXPAT_LIBRARIES} |
201 | ${ZLIB_LIBRARIES} | 202 | ${ZLIB_LIBRARIES} |
203 | ${WINDOWS_LIBRARIES} | ||
202 | ) | 204 | ) |
203 | 205 | ||
204 | if(HAVE_64_BIT) | ||
205 | add_library (llcommonPIC ${llcommon_SOURCE_FILES}) | ||
206 | add_dependencies(llcommonPIC prepare) | ||
207 | |||
208 | if(WINDOWS) | ||
209 | add_definitions(/FIXED:NO) | ||
210 | else(WINDOWS) # not windows therefore gcc LINUX and DARWIN | ||
211 | add_definitions(-fPIC) | ||
212 | endif(WINDOWS) | ||
213 | |||
214 | target_link_libraries( | ||
215 | llcommonPIC | ||
216 | ${APRUTIL_LIBRARIES} | ||
217 | ${APR_LIBRARIES} | ||
218 | ${EXPAT_LIBRARIES} | ||
219 | ${ZLIB_LIBRARIES} | ||
220 | ) | ||
221 | endif(HAVE_64_BIT) | ||
222 | |||