GNU gettext - Bugs: bug #30060, messed up LDFLAGS and LIBADD for...
You are not allowed to post comments on this tracker with your current authentication level.
bug #30060: messed up LDFLAGS and LIBADD for libgettextpo and libgettextsrc
Submitter: | Funda Wang <fundawang> | ||
Submitted: | Mon 07 Jun 2010 02:51:35 AM UTC | ||
Category: | Build | Severity: | 3 - Normal |
Item Group: | None | Status: | Not a Bug |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Closed |
Mon 13 Feb 2023 12:22:02 PM UTC, comment #4: |
Bruno Haible <haible>![]() ![]() |
Sun 12 Dec 2010 03:12:48 PM UTC, comment #3:
|
Bruno Haible <haible>![]() ![]() |
Mon 07 Jun 2010 10:16:17 AM UTC, comment #2: ./configure --build=x86_64-mandriva-linux-gnu --prefix=/usr --exec-prefix=/usr
|
Funda Wang <fundawang> |
Mon 07 Jun 2010 09:34:00 AM UTC, comment #1: Can you tell me what problem you had with the definitions as
|
Bruno Haible <haible>![]() ![]() |
Mon 07 Jun 2010 02:51:35 AM UTC, original submission:
libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
|
Funda Wang <fundawang> |
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.
Follow 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-02-13 | haible | Status | In Progress | ![]() |
Not a Bug |
Open/Closed | Open | ![]() |
Closed | ||
2016-11-27 | haible | Category | None | ![]() |
Build |
2010-12-12 | haible | Status | Need Info | ![]() |
In Progress |
2010-06-07 | haible | Assigned to | None | ![]() |
haible |
2010-06-07 | haible | Status | None | ![]() |
Need Info |
2010-06-07 | fundawang | Attached File | - | ![]() |
Added a.patch, #20700 |
No one puts static libraries into $(LDFLAGS). If they are needed by all programs, they belong in $(LIBS).
When the target is a non-libtool library, library.a, there is no $(library_a_LDFLAGS) variable; the link dependencies simply get ignored when creating a .a file.
When the target is a libtool library, library.la, the value of $(library_la_LDFLAGS) gets used in a libtool command line, before the objects. This is OK, because as Ralf Wildenhues wrote in https://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00146.html: "libtool will reorder the command line so that `-l' flags appear after all encountered objects."
And the objects appear before $(library_la_LIBADD) and $(LIBS); this is necessary for static linking.