Makefile for lib64 libraries

Todd Zullinger tmz at pobox.com
Thu Dec 3 20:37:53 UTC 2009


Steve Searle wrote:
> I have just upgraded to 64-bit Fedora, and have a mysql appliation
> where the build fails with:
>
> /usr/bin/ld: cannot find -lmysqlclient
>
> I know that this is because the library is in lib64, and my
> Makefile.am contains:
>
> bin_PROGRAMS = scraperes
> scraperes_SOURCES = main.cpp ...
> AM_CPPFLAGS = -I/usr/include/mysql
> AM_LDFLAGS = -L/usr/lib/mysql -lmysqlclient
>
> I know I can edit this to have lib64, but what can I do to make it
> work for both 64-bit and 32-bit operating systems?

Using mysql_config to gather the valuse for CPPFLAGS and LDFLAGS might
be best.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unquestionably, there is progress.  The average American now pays out
twice as much in taxes as he formerly got in wages.
    -- H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091203/0b2b6458/attachment-0001.sig>


More information about the fedora-list mailing list