Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling
@ 2014-12-25  4:34 Adam Jiang
  2014-12-25  4:47 ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Jiang @ 2014-12-25  4:34 UTC (permalink / raw)
  To: buildroot

Hi,

I am trying to add a new package to buildroot. the package is built upon
autotools. thus, it is supposed to be very easy to make it
cross-compilable. ever, i got suck at AC_CHECK_LIB macro. it doesn't
work well at cross-compiling while it does work on normal compiling.

AC_CHECK_LIB([fcgi], [FCGX_InitRequest], [AC_MSG_WARN("unable to find
the FCGX_InitRequest() function")])

always failed even though I do have libfcgi in my configuration. The
error message looks like

checking for FCGX_InitRequest in -lfcgi... no
configure: WARNING: unable to find the FCGX_InitRequest() function

I don't think AC_CHECK_LIB will not work on cross-compiling because it
seems there are lots of other target packages in buildroot using the
macro. Most probably, I am doing something wrong.

Does AC_CHECK_LIB work in buildroot? If the macro needs some changes,
how could I do it?

Thanks,
/Adam

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-26 14:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25  4:34 [Buildroot] AC_CHECK_LIB doesn't work for cross-compiling Adam Jiang
2014-12-25  4:47 ` Baruch Siach
2014-12-25  6:27   ` Adam Jiang
2014-12-25  6:49     ` Baruch Siach
2014-12-25 13:03       ` Adam Jiang
2014-12-26 14:31         ` Thomas Petazzoni
2014-12-25 13:25       ` Adam Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox