mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 10:20:15 +00:00
590675c079
Since the commit
commit 81a1443941
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Feb 5 17:35:12 2019 -0200
wcsmbs: optimize wcscat
powerpc64 and powerpc64le builds fail when configured with
--disable-multi-arch and --with-cpu=power6 (or newer), due to an
undefined reference to __GI___wcscpy. This patch fixes this on
sysdeps/powerpc/powerpc64/power6/wcscpy.c, which is only used when
multi-arch is disabled.
This patch does nothing for the failures on 32-bits powerpc builds,
because the file is under the powerpc64 subdirectory, however, powerpc
builds were already failing with --disable-multi-arch, with multiple
error messages, even before the aforementioned commit.
Tested for powerpc, powerpc64, and powerpc64le with multi-arch enabled
(all pass) and disabled (powerpc still fails as explained above).
5 lines
124 B
C
5 lines
124 B
C
#define WCSCPY __wcscpy
|
|
#include <sysdeps/powerpc/power6/wcscpy.c>
|
|
libc_hidden_def (__wcscpy)
|
|
weak_alias (__wcscpy, wcscpy)
|