diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-03-24 12:16:24 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-03-24 12:16:24 -0700 |
commit | 7d9335ecd7ddd16bcbcfcc0f9cc1f0b5d392f849 (patch) | |
tree | 84a9f312ac8bf27c7aa8d30a706369b55458f616 /sysdeps/x86_64/multiarch | |
parent | 8863605af91a9a930c0e92e87775cf22780451e0 (diff) | |
download | glibc-7d9335ecd7ddd16bcbcfcc0f9cc1f0b5d392f849.tar.gz glibc-7d9335ecd7ddd16bcbcfcc0f9cc1f0b5d392f849.tar.xz glibc-7d9335ecd7ddd16bcbcfcc0f9cc1f0b5d392f849.zip |
Don't define __strpbrk_sse42 in static library
Diffstat (limited to 'sysdeps/x86_64/multiarch')
-rw-r--r-- | sysdeps/x86_64/multiarch/strpbrk-c.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sysdeps/x86_64/multiarch/strpbrk-c.c b/sysdeps/x86_64/multiarch/strpbrk-c.c index c58dcb5605..bbf5c49d89 100644 --- a/sysdeps/x86_64/multiarch/strpbrk-c.c +++ b/sysdeps/x86_64/multiarch/strpbrk-c.c @@ -1,4 +1,8 @@ -#define USE_AS_STRPBRK -#define STRCSPN_SSE2 __strpbrk_sse2 -#define STRCSPN_SSE42 __strpbrk_sse42 -#include "strcspn-c.c" +/* Don't define multiple versions for strpbrk in static library since we + need strpbrk before the initialization happened. */ +#ifdef SHARED +# define USE_AS_STRPBRK +# define STRCSPN_SSE2 __strpbrk_sse2 +# define STRCSPN_SSE42 __strpbrk_sse42 +# include "strcspn-c.c" +#endif |