mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 10:50:07 +00:00
357bb400f1
This patch fixes the strstr build with --disable-multi-arch option. The optimization calls the __strstr_ppc symbol, which always build for multiarch config but not if it is disable. This patch fixes it by adding the default C implementation object with the expected symbol name. * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string] (sysdep_routines): Add strstr-ppc64. * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
12 lines
341 B
Makefile
12 lines
341 B
Makefile
ifeq ($(subdir),elf)
|
|
# Prevent the use of VSX registers and insns in _dl_start, which under -O3
|
|
# optimization may require a TOC reference before relocations are resolved.
|
|
CFLAGS-rtld.c += -mno-vsx
|
|
endif
|
|
|
|
ifeq ($(subdir),string)
|
|
sysdep_routines += strstr-ppc64
|
|
CFLAGS-strncase.c += -funroll-loops
|
|
CFLAGS-strncase_l.c += -funroll-loops
|
|
endif
|