URL:
<http://savannah.gnu.org/bugs/?35518>
Summary: Correct gettext/iconv linking
Project: grep
Submitted by: brad0
Submitted on: Sun 12 Feb 2012 09:14:07 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The attached patch corrects the automake files to use LTLIBINTL and LTLIBICONV
as appropriate. Currently the Makefile's are using LIBINTL and LIBICONV which
provide relative paths to the libraries instead of linking with -lfoo as it
should be.
cc -std=gnu99 -O2 -pipe -L/usr/local/lib -o egrep egrep.o libgrep.a
../lib/libgreputils.a /usr/local/lib/libintl.so.5.0
/usr/local/lib/libiconv.so.6.0 ../lib/libgreputils.a
/usr/local/lib/libiconv.so.6.0
$ objdump -p gegrep
...
Dynamic Section:
NEEDED /usr/local/lib/libintl.so.5.0
NEEDED /usr/local/lib/libiconv.so.6.0
NEEDED libc.so.62.0
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 12 Feb 2012 09:14:07 PM GMT Name: grep.diff Size: 2kB By: brad0
<http://savannah.gnu.org/bugs/download.php?file_id=25050>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35518>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/