diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/Variables.cmake | 11 | ||||
-rwxr-xr-x | linden/indra/develop.py | 5 | ||||
-rw-r--r-- | linden/indra/llui/llresmgr.cpp | 9 | ||||
-rw-r--r-- | linden/indra/mac_updater/mac_updater.cpp | 6 |
4 files changed, 25 insertions, 6 deletions
diff --git a/linden/indra/cmake/Variables.cmake b/linden/indra/cmake/Variables.cmake index 6b7ded3..25d7a17 100644 --- a/linden/indra/cmake/Variables.cmake +++ b/linden/indra/cmake/Variables.cmake | |||
@@ -80,10 +80,19 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | |||
80 | 80 | ||
81 | if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | 81 | if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
82 | set(DARWIN 1) | 82 | set(DARWIN 1) |
83 | |||
84 | # Incorporated settings from | ||
85 | # http://imprudenceviewer.org/w/index.php?title=How_to_compile&oldid=1647#Mac | ||
86 | # so that people don't have to set them every time they run develop.py | ||
87 | set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "4.0") | ||
88 | set(CMAKE_XCODE_ATTRIBUTE_ARCHS '$(ARCHS_STANDARD_32_BIT)') | ||
89 | set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS "i386 ppc") | ||
90 | # set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO") | ||
91 | |||
83 | # set this dynamically from the build system now - | 92 | # set this dynamically from the build system now - |
84 | # NOTE: wont have a distributable build unless you add this on the configure line with: | 93 | # NOTE: wont have a distributable build unless you add this on the configure line with: |
85 | # -DCMAKE_OSX_ARCHITECTURES:STRING='i386;ppc' | 94 | # -DCMAKE_OSX_ARCHITECTURES:STRING='i386;ppc' |
86 | set(CMAKE_OSX_ARCHITECTURES i386) | 95 | set(CMAKE_OSX_ARCHITECTURES i386;ppc) |
87 | set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk) | 96 | set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk) |
88 | if (CMAKE_OSX_ARCHITECTURES MATCHES "i386") | 97 | if (CMAKE_OSX_ARCHITECTURES MATCHES "i386") |
89 | set(ARCH i386) | 98 | set(ARCH i386) |
diff --git a/linden/indra/develop.py b/linden/indra/develop.py index 2f07e9e..3760609 100755 --- a/linden/indra/develop.py +++ b/linden/indra/develop.py | |||
@@ -435,7 +435,12 @@ class DarwinSetup(UnixSetup): | |||
435 | type=self.build_type | 435 | type=self.build_type |
436 | ) | 436 | ) |
437 | if self.universal == 'ON': | 437 | if self.universal == 'ON': |
438 | args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\'' | ||
439 | elif self.arch == 'ppc': | ||
440 | args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'ppc\'' | ||
441 | else: | ||
438 | args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386\'' | 442 | args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386\'' |
443 | |||
439 | #if simple: | 444 | #if simple: |
440 | # return 'cmake %(opts)s %(dir)r' % args | 445 | # return 'cmake %(opts)s %(dir)r' % args |
441 | return ('cmake -G %(generator)r ' | 446 | return ('cmake -G %(generator)r ' |
diff --git a/linden/indra/llui/llresmgr.cpp b/linden/indra/llui/llresmgr.cpp index 22610ca..a16cfdf 100644 --- a/linden/indra/llui/llresmgr.cpp +++ b/linden/indra/llui/llresmgr.cpp | |||
@@ -266,8 +266,13 @@ std::string LLResMgr::getMonetaryString( S32 input ) const | |||
266 | default: // Unknown -- use the US defaults. | 266 | default: // Unknown -- use the US defaults. |
267 | case LLLOCALE_USA: | 267 | case LLLOCALE_USA: |
268 | case LLLOCALE_UK: // UK ends up being the same as US for the items used here. | 268 | case LLLOCALE_UK: // UK ends up being the same as US for the items used here. |
269 | fakeconv.negative_sign = "-"; | 269 | // Mac OS X 10.6 SDK's struct lconv contains "char *" not |
270 | fakeconv.mon_grouping = "\x03\x03\x00"; // commas every 3 digits | 270 | // "const char *" so these char arrays work around the error |
271 | // this causes in GCC 4.2, even though they won't be modified. | ||
272 | static char negative_sign[] = "-"; | ||
273 | static char mon_grouping[] = "\x03\x03\x00"; | ||
274 | fakeconv.negative_sign = negative_sign; | ||
275 | fakeconv.mon_grouping = mon_grouping; // commas every 3 digits | ||
271 | fakeconv.n_sign_posn = 1; // negative sign before the string | 276 | fakeconv.n_sign_posn = 1; // negative sign before the string |
272 | break; | 277 | break; |
273 | } | 278 | } |
diff --git a/linden/indra/mac_updater/mac_updater.cpp b/linden/indra/mac_updater/mac_updater.cpp index 03c6f6f..cab9e54 100644 --- a/linden/indra/mac_updater/mac_updater.cpp +++ b/linden/indra/mac_updater/mac_updater.cpp | |||
@@ -68,8 +68,8 @@ EventHandlerRef gEventHandler = NULL; | |||
68 | OSStatus gFailure = noErr; | 68 | OSStatus gFailure = noErr; |
69 | Boolean gCancelled = false; | 69 | Boolean gCancelled = false; |
70 | 70 | ||
71 | char *gUpdateURL; | 71 | const char *gUpdateURL; |
72 | char *gProductName; | 72 | const char *gProductName; |
73 | 73 | ||
74 | void *updatethreadproc(void*); | 74 | void *updatethreadproc(void*); |
75 | 75 | ||
@@ -1032,7 +1032,7 @@ void *updatethreadproc(void*) | |||
1032 | if(!mountOutput.empty()) | 1032 | if(!mountOutput.empty()) |
1033 | { | 1033 | { |
1034 | const char *s = mountOutput.c_str(); | 1034 | const char *s = mountOutput.c_str(); |
1035 | char *prefix = "/dev/"; | 1035 | const char *prefix = "/dev/"; |
1036 | char *sub = strstr(s, prefix); | 1036 | char *sub = strstr(s, prefix); |
1037 | 1037 | ||
1038 | if(sub != NULL) | 1038 | if(sub != NULL) |