2010/10/30 Ralf Wildenhues <ralf.wildenh...@gmx.de>:
> Hello Sergio,
>
> * Sergio Belkin wrote on Mon, Oct 25, 2010 at 07:44:20PM CEST:
>>  I am using ax_lib_mysql.m4 in order to detect location of mysql libs,
>>    but the problem is that LD_FLAGS is a mixed if LD_FLAGS and LIBS:
>>    -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl
>> -lcrypto
>>    The problem is that I want only link against mysqlclient, so I want to
>>    add "--as-needed" be honored, how can I do that?
>
> Put -Wl,--as-needed before the whole list, and -Wl,--no-as-needed
> afterwards?
>
> I should note that this will not work if you're linking with libtool
> and creating a shared library (which is a bug/limitation in libtool).
>
> Hope that helps.
>
> Cheers,
> Ralf
>

Good point I am using now tha macro ax_ext_have_lib that  it's closer
to what I'm looking for but has issues either which I will report on a
different thread.

TIA
-- 
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -

Reply via email to