buggrep - Bugs: bug #35518, Correct gettext/iconv linking

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #35518: Correct gettext/iconv linking

Submitted by:  Brad Smith <brad0>
Submitted on:  Sun 12 Feb 2012 09:14:07 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

Wed 29 Feb 2012 05:39:19 PM UTC, comment #2:

No response for a while, so I'm marking this bug "Need Info".

Paul Eggert <eggert>
Project Member
Sun 12 Feb 2012 10:25:56 PM UTC, comment #1:

I don't see why the patch is needed, or
how the patch can work in general.
Grep doesn't use libtool, and surely LTLIBINTL and
LTLIBICONV aren't reliable in the absence of libtool.

Paul Eggert <eggert>
Project Member
Sun 12 Feb 2012 09:14:07 PM UTC, original submission:

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

Brad Smith <brad0>

 

Attached Files
file #25050:  grep.diff added by brad0 (2kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by eggert (Posted a comment)
  • -unavailable- added by brad0 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Feb 2012 05:39:19 PM UTCeggertStatusNone=>Need Info
    Sun 12 Feb 2012 09:14:07 PM UTCbrad0Attached File-=>Added grep.diff, #25050

    Back to the top


    Powered by Savane 3.1-cleanup