diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 8 | ||||
-rw-r--r-- | linden/indra/cmake/LLCommon.cmake | 13 |
2 files changed, 20 insertions, 1 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index d335cb0..6403d49 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -20,6 +20,14 @@ set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING | |||
20 | "Supported build types." FORCE) | 20 | "Supported build types." FORCE) |
21 | 21 | ||
22 | 22 | ||
23 | # Determine the number of bits of this processor | ||
24 | |||
25 | if(CMAKE_SIZEOF_VOID_P MATCHES 4) | ||
26 | set( HAVE_64_BIT 0 ) | ||
27 | else(CMAKE_SIZEOF_VOID_P MATCHES 4) | ||
28 | set( HAVE_64_BIT 1 ) | ||
29 | endif(CMAKE_SIZEOF_VOID_P MATCHES 4) | ||
30 | |||
23 | # Platform-specific compilation flags. | 31 | # Platform-specific compilation flags. |
24 | 32 | ||
25 | if (WINDOWS) | 33 | if (WINDOWS) |
diff --git a/linden/indra/cmake/LLCommon.cmake b/linden/indra/cmake/LLCommon.cmake index 410766e..9158e98 100644 --- a/linden/indra/cmake/LLCommon.cmake +++ b/linden/indra/cmake/LLCommon.cmake | |||
@@ -12,4 +12,15 @@ set(LLCOMMON_INCLUDE_DIRS | |||
12 | ${Boost_INCLUDE_DIRS} | 12 | ${Boost_INCLUDE_DIRS} |
13 | ) | 13 | ) |
14 | 14 | ||
15 | set(LLCOMMON_LIBRARIES llcommon) | 15 | # Files that need PIC code (pluginAPI) need to set REQUIRE_PIC on 64bit systems |
16 | # this will link against a llcommon built with Position Independent Code | ||
17 | # this is a requirment to link a static library (.a) to a DSO on 64 bit systems | ||
18 | |||
19 | if(REQUIRE_PIC) | ||
20 | set(LLCOMMON_LIBRARIES llcommonPIC) | ||
21 | else(REQUIRE_PIC) | ||
22 | set(LLCOMMON_LIBRARIES llcommon) | ||
23 | endif(REQUIRE_PIC) | ||
24 | |||
25 | #force clear the flag, files that need this must explicity set it themselves | ||
26 | set(REQUIRE_PIC 0) \ No newline at end of file | ||