Repeating libs on libtool command line?

I don't know how to do that. Note however, that if you are on a system that uses GNU-ld (or gold), you can achieve the same result with.

Up vote 3 down vote favorite share g+ share fb share tw.

I'm using automake, and getting a libtool invocation like this: /bin/sh ../libtool --tag=CC --mode=link gcc -o test_foo test_foo. O -lA -lB -lC -lA -lB -lC Note that the libraries (which are beyond my control) have circular dependencies that require them to be mentioned more than once. Unfortunately it seems that libtool folds multiple requests for libraries into a single request, and it runs: gcc -o test_foo test_foo.

O -lA -lB -lC Note that the second pass over the libs is gone; I get a bunch of linker errors. When I manually run that gcc command line with the extra -l flags, it works. How can I make libtool pass all the libs I've requested to gcc?

Linker automake libtool link|improve this question asked 2 days agobstpierre4,72031129 94% accept rate.

1 Circular dependencies are not supported on so many layers (starting with dynamic libraries), so there is no point for libtool to even attempt it. – jørgensen yesterday.

I don't know how to do that. Note however, that if you are on a system that uses GNU-ld (or gold), you can achieve the same result with -Wl,--start-group -lA -lB -lC -Wl,--end-group Perhaps libtool will leave these unmolested? Alas, libtool 2.2.6b moves -Wl,--end-group before all the libraries ;-( This gross hack does it: -Wl,--start-group,-lA,-lB,-lC,--end-group (I find that libtool is wrong 99% of the time and try to avoid it like a plague.

).

Thanks! It's an ugly hack, but it seems to work. – bstpierre 4 hours ago.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions