[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #48193] Build fails unless -liconv set explicitly in LDF

From: Bruno Haible
Subject: [Bug-wget] [bug #48193] Build fails unless -liconv set explicitly in LDFLAGS
Date: Sun, 19 Jun 2016 23:07:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #9, bug #48193 (project wget):

Rather than
LDADD = $(LIBOBJS) $(LTLIBICONV) ../lib/libgnu.a 
it would be better to write
LDADD = $(LIBOBJS) ../lib/libgnu.a $(LTLIBICONV)

The reason is that $(LTLIBICONV) refers to - more or less - a system library,
and it can be a shared library. If the object files in libgnu.a reference the
'iconv' symbol but $(LIBOBJS) don't, you may still get a link error. Moving
all the shared/system libraries to the end of the link command line fixes


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]