-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[glibc]: Specify locale-archive search path #1486
Conversation
According to glibc documentation "locale-archive which is generally installed as /usr/lib/locale/locale-archive" For new glibc versions (2.38+) you can face with problem: locale-archive are searched for in /usr/lib64/lp64d/locale folder To reproduce: compile test.c with call to setlocale(LC_ALL, "") and run strace Finally, to search for locale-archive in default folder we need to extra specify libc_cv_complocaledir in order to overwrite Makeconfig:complocaledir=${libdir}/locale.
glibc does My understanding is that this is an issue in multilib toolchain builds. It might be, that in most cases the binary locale data is equal for all multilib flavors. Which leads to the question: why is |
Yes, it is my fault, this change doesn't correspond to glibc version.
Because we build standart gnu-toolchain and should correspond to official documentation (/usr/lib/locale). |
But on a multilib system, you have multiple bin directories. The default in glibc for I see two possible solutions for you:
|
I just realized that we already have that with So the following should work (untested): |
@cmuellner , yes, I'm aware of GLIBC_TARGET_FLAGS_EXTRA and already defined it for my case. My intension was to build locale-archive according to default location that was described in INSTALL manual. |
Does this issue perhaps impinge on this discussion? |
The default location is correct, but only for default (i.e., non-multilib) toolchains. I'll close this PR. Anyway, thanks for taking the time and preparing the PR. |
According to glibc documentation
locale-archive which is generally installed as /usr/lib/locale/locale-archive
For new glibc versions (2.38+) you can face with problem:
locale-archive
are searched for in/usr/lib64/lp64d/locale
folderTo reproduce: compile test.c with call to
setlocale(LC_ALL, "")
and runstrace
Finally, to search for locale-archive in default folder we need to extra specify
libc_cv_complocaledir
in order to overwriteMakeconfig:complocaledir=${libdir}/locale
.