[Buildroot] Analysis of build failures
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Feb 12 12:31:53 UTC 2014
Dear Thomas De Schampheleire,
On Wed, 12 Feb 2014 13:29:35 +0100, Thomas De Schampheleire wrote:
> I found this snippet:
> AC_CHECK_LIB(c, dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
>
> which would be used as follows in aclocal.m4:
> -ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
> +ALSA_LIBS="$ALSA_LIBS -lasound -lm $LIBDL -lpthread"
>
> but aclocal.m4 seems to be regenerated with autoreconf. How can you
> make changes in that file?
You don't make changes to aclocal.m4.
> I tried adding an m4 file in the m4 subdirectory, adding it to the Makefile.am.
> But how to regenerate aclocal.m4?
By running the aclocal tool.
From man aclocal:
"""
Generate 'aclocal.m4' by scanning 'configure.ac' or 'configure.in
"""
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list