[vlc-devel] [PATCH] Fix libpng checking on OpenBSD

Rémi Denis-Courmont remi at remlab.net
Mon Jan 30 08:45:40 CET 2012


On Mon, 30 Jan 2012 01:28:09 -0500, Brad Smith <brad at comstyle.com> wrote:
> This fixes the libpng check on OpenBSD. Although the code was passing
> libm to ultimately link the library the test itself was not and thus
> failing.

Woe32 and probably some other platforms lack a separate libm. There should
be $LIBM IIRC.

> diff --git a/configure.ac b/configure.ac
> index e4afd39..1b723e3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2741,11 +2741,11 @@ AC_ARG_ENABLE(png,
>  if test "${enable_png}" != "no"; then
>  AC_CHECK_HEADERS(png.h, [
>    VLC_SAVE_FLAGS
> -  LDFLAGS="${LDFLAGS} -lz"
> +  LDFLAGS="${LDFLAGS} -lz -lm"
>    AC_CHECK_LIB(png, png_set_rows, [
>      VLC_ADD_LIBS([png],[-lpng -lz -lm])
>      VLC_ADD_PLUGIN([png osdmenu osd_parser])],
> -    [],[-lz])
> +    [],[-lz -lm])
>    VLC_RESTORE_FLAGS
>    ])
>  fi

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list