Benoit Sigoure wrote: > On Dec 4, 2007, at 7:24 PM, Peter O'Gorman wrote: > >> Benoit Sigoure wrote: >> >>>> Of course there is: -Wl,-Bstatic -lfoo -Wl,-Bdynamic >> >> -Bstatic and -Bdynamic are not portable. > > > The quoting is wrong, I didn't say this :)
Heh. > > Anyways, are you aware of another more general/portable solution to > detect static libraries? > You can run libtool at configure time, in branch-1-5 it is created while running configure, in HEAD you have to use LT_OUTPUT to generate a configure time libtool to test with. You could figure out what the extension for static archives is on the host platform, and then use full paths to them. I am not sure how AIX would behave here where the archive contains the shared object. Not much help, sorry. Peter -- Peter O'Gorman http://pogma.com _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool