diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2015-10-21 21:03:00 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2015-10-21 21:28:08 -0700 |
commit | d6877a7c1c35985f6a75b6cd4e814595e781adc4 (patch) | |
tree | d112e46df8020a54395fa54aca2f327bedfe9b50 /src/stubs/stubs.h | |
parent | 2788c6984bc54bfba61b2dbdb5353978199d8a37 (diff) |
Use NO_WEAK_SYMBOLS instead of -flat_namespace
Lesser of two evil hacks, I suppose...
This reverts commit 0386fa77367a305deea3cc27f8a3865cc3c467c0.
Diffstat (limited to 'src/stubs/stubs.h')
-rw-r--r-- | src/stubs/stubs.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/stubs/stubs.h b/src/stubs/stubs.h index c09c675..9e71806 100644 --- a/src/stubs/stubs.h +++ b/src/stubs/stubs.h @@ -10,7 +10,7 @@ #endif /* this probably works for Mach-O too, but probably not for PE */ -#if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3) +#if defined(__ELF__) && defined(__GNUC__) && (__GNUC__ >= 3) #define weak __attribute__((weak)) #else #define weak @@ -67,15 +67,6 @@ extern void (*__register_fpe_functions)(void); #define OVERRIDE_VA_SYMBOL(sym,f) #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, - * so we're instead building with flat_namespace. - */ -#ifdef __APPLE__ -#undef weak -#define weak -#endif - extern FontPtr find_old_font ( FSID id ); extern int set_font_authorizations ( char **authorizations, int *authlen, |