GNU gettext - Bugs: bug #61769, building libasprintf does not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61769: building libasprintf does not honour RPATH configure option --disable-rpath
Submitter: | Rudi Heitbaum <heitbaum> | ||
Submitted: | Sat 08 Jan 2022 03:30:48 AM UTC | ||
Category: | Build | Severity: | 3 - Normal |
Item Group: | None | Status: | Works For Me |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Closed |
Sat 25 Jun 2022 08:08:50 PM UTC, comment #3: |
Bruno Haible <haible>![]() ![]() |
Sat 08 Jan 2022 06:47:48 AM UTC, comment #2: Hi Bruno,
|
Rudi Heitbaum <heitbaum> |
Sat 08 Jan 2022 06:24:01 AM UTC, comment #1: What's the platform name (esp. operating system and version), the linker used (GNU ld, GNU gold, LLVM lld, etc.), and libc type? |
Bruno Haible <haible>![]() ![]() |
Sat 08 Jan 2022 03:30:48 AM UTC, original submission:
|
Rudi Heitbaum <heitbaum> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
1) When I build, on Ubuntu 22.04, gettext 0.21
- once with CC=gcc, CXX=g++,
- once with CC="gcc -fuse-ld=gold", CXX="g++ -fuse-ld=gold",
I obtain identical results: --disable-rpath has the desired effect.
Therefore, I'm closing this ticket as "works for me".
Nevertheless, here are two more findings:
2) When I look at your gettext-runtime/libasprintf/config.log, I see the lines
That is, the libtool configuration guessed wrong about the linker. The reason is that you have put the -fuse-ld=gold option into the LDFLAGS, not the CC and CXX variables. The documentation at https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Preset-Output-Variables.html says "one approach is to put the option into CC. Another is to put it into both CPPFLAGS and LDFLAGS, but not into CFLAGS." But apparently for this particular option, putting it into CC and CXX is the better choice.
3) In the same file, I also see the lines
That result should be 'yes'. This points to an issue with your cross-compiler installation.