Don't define __strpbrk_sse42 in static library

This commit is contained in:
H.J. Lu 2010-03-24 12:16:24 -07:00 committed by Ulrich Drepper
parent 8863605af9
commit 7d9335ecd7
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/strpbrk-c.c: Define only if SHARED
is defined.
2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
* string/test-memcmp.c (check_result): New function.

View File

@ -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