This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld cannot find -lffi


On 08/17/2013 05:22 AM, Jason Gross wrote:
> I have installed libffi-3.0.13 from source.  The generated Makefile
> tells me "toolexeclibdir = $(libdir)/../lib64", and the libraries seem
> to have installed there.  However, the .pc file that gets installed
> tells pkg-config to tell ld to look in "libdir=${exec_prefix}/lib".
> Hence, ld cannot find -lffi when I go to compile something with "gcc
> `pkg-config --libs --cflags libffi`".  I can workaround this by
> copying the contents of lib64 to lib, but this seems silly and broken.
>  In addition to wanting this bug to be fixed, I'm curious to know
> where the Makefile gets lib64 from, because "grep lib64 *" tells me
> that the only other appearance is  configure:
> sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" (also
> makefiles.out~, but I figure that's a temporary).  If it's relevant,
> uname -a tells me "Linux cagnode17 2.6.32-5-xen-amd64 #1 SMP Sun Sep
> 23 13:49:30 UTC 2012 x86_64 GNU/Linux"

When you configured, what was your --libdir argument?

Andrew.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]