1 |
maillog: 11/08/2005-16:05:02(-0700): Donnie Berkholz types |
2 |
> Donnie Berkholz wrote: |
3 |
> > Attached an update to incorporate this and your other grep comments. |
4 |
> |
5 |
> Here's a new one. It prints some useful information while it's |
6 |
> searching, like OK or Not found!. Also fixes a little more ugly output |
7 |
> (double/single quotes and pipes showing up as parts of lib names) and |
8 |
> makes an attempt to use rpm if equery isn't around, and just prints the |
9 |
> lib paths otherwise. |
10 |
|
11 |
Looks better and better. A couple more comments: |
12 |
|
13 |
- I tried the script on the output of gvim, and it erroneously tried to |
14 |
find libatk-1.0.a. The problem was in this line: |
15 |
|
16 |
x86_64-pc-linux-gnu-gcc -L/usr/lib64 -L/usr/lib64 -rdynamic |
17 |
-L/usr/local/lib -o gvim <snip object files> -lgdk_pixbuf-2.0 |
18 |
-lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 |
19 |
-lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lacl -lgpm -rdynamic |
20 |
-L/usr/local/lib |
21 |
/usr/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a |
22 |
-L/usr/lib/perl5/5.8.6/x86_64-linux/CORE -lperl -lutil -lc |
23 |
-L/usr/lib/python2.4/config -lpython2.4 -L/usr/lib64 -lz -lutil -lm |
24 |
-Xlinker -export-dynamic static |
25 |
|
26 |
As you can see, it's the "static" in the end of the line. Maybe you |
27 |
should grep for "-static" instead. |
28 |
|
29 |
- I'm sure I've seen makefiles that use tabs instead of spaces to |
30 |
separate the -l arguments. Maybe you should replace the space with a |
31 |
[:space:] or something? |
32 |
|
33 |
- To avoid eventual problems with similarly named libraries (libpam and |
34 |
libpam_misc for example; grepping for -lpam would also match |
35 |
-lpam_misc) you could grep for "\<-l${libname}\>" instead. This would |
36 |
also solve the space-or-tab problem. |
37 |
|
38 |
-- |
39 |
/ Georgi Georgiev / We must know, we will know. -- David / |
40 |
\ chutz@×××.net \ Hilbert \ |
41 |
/ +81(90)2877-8845 / / |