diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2019-03-02 16:57:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2019-03-05 11:33:19 -0300 |
commit | 590675c079d743ecf6fee9f561e46c94633a91ef (patch) | |
tree | c893faa913d46c1fee20b329e35967861451e75d /sysdeps/powerpc/powerpc64 | |
parent | de71ee7b3c61dd26b78599da492b1168b31e70b6 (diff) | |
download | glibc-590675c079d743ecf6fee9f561e46c94633a91ef.tar.gz glibc-590675c079d743ecf6fee9f561e46c94633a91ef.tar.xz glibc-590675c079d743ecf6fee9f561e46c94633a91ef.zip |
powerpc: Fix build of wcscpy with --disable-multi-arch
Since the commit commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7 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).
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-rw-r--r-- | sysdeps/powerpc/powerpc64/power6/wcscpy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/power6/wcscpy.c b/sysdeps/powerpc/powerpc64/power6/wcscpy.c index 722c8f995b..59cfb28832 100644 --- a/sysdeps/powerpc/powerpc64/power6/wcscpy.c +++ b/sysdeps/powerpc/powerpc64/power6/wcscpy.c @@ -1 +1,4 @@ +#define WCSCPY __wcscpy #include <sysdeps/powerpc/power6/wcscpy.c> +libc_hidden_def (__wcscpy) +weak_alias (__wcscpy, wcscpy) |