Skip to content

Commit

Permalink
Don't define __strpbrk_sse42 in static library
Browse files Browse the repository at this point in the history
  • Loading branch information
H.J. Lu authored and Ulrich Drepper committed Mar 24, 2010
1 parent 8863605 commit 7d9335e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
12 changes: 8 additions & 4 deletions sysdeps/x86_64/multiarch/strpbrk-c.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7d9335e

Please sign in to comment.