1 |
В Срд, 12/08/2009 в 00:03 +0200, Thomas Kahle пишет: |
2 |
> the following check in configure.ac fails with --as-needed but works |
3 |
> without it. Any hints what is wrong ? Thanks / Thomas |
4 |
|
5 |
Common reason for failure with --as-needed is the order of libraries. In |
6 |
you previous mail you wrote that with |
7 |
|
8 |
sed "s/\"-lntl\"/\"-lntl\" \"-lgf2x -lntl\"/" -i "${S}/configure.ac" |
9 |
|
10 |
it works but here: |
11 |
|
12 |
> for lib in "" "-lntl" "-lntl -lgf2x" |
13 |
|
14 |
I see different order. Try to change order of -lgf2x and -lntl inside |
15 |
ebuild. Also |
16 |
|
17 |
sed 's/"-lntl"/"-lntl" "-lgf2x -lntl"/' -i "${S}/configure.ac" |
18 |
|
19 |
is shorter and easier to read. |
20 |
|
21 |
-- |
22 |
Peter. |