Re: Makefile for lib64 libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgp7n8eyu2i29.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux