diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-08-08 00:19:36 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-08-08 00:19:36 -0700 |
commit | 455ec66e82e3c4bedd9e789d2ab33030b8e64ffa (patch) | |
tree | 94fbea683407788cdaf496ccff521777ea9adbb9 | |
parent | 0386fa77367a305deea3cc27f8a3865cc3c467c0 (diff) |
Fix builds with Sun compilers
Sun compilers use #pragma weak in the *.c files to declare weak symbols,
so should have weak defined to empty, but not define NO_WEAK_SYMBOLS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/stubs/stubs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stubs/stubs.h b/src/stubs/stubs.h index c721bbd..819d35e 100644 --- a/src/stubs/stubs.h +++ b/src/stubs/stubs.h @@ -16,8 +16,10 @@ #define weak __attribute__((weak)) #else #define weak +#ifndef __SUNPRO_C /* Sun compilers use #pragma weak in .c files instead */ #define NO_WEAK_SYMBOLS #endif +#endif /* This is really just a hack for now... __APPLE__ really should be using * the weak symbols route above, but it's causing an as-yet unresolved issue, |