Commit 900041eb authored by Brad Smith's avatar Brad Smith Committed by Rémi Denis-Courmont

Fix libpng checking on OpenBSD

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. Also at
Remi's request I changed the existing and newly introduced use of -lm to $LIBM.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 4bc2de8c
...@@ -2741,11 +2741,11 @@ AC_ARG_ENABLE(png, ...@@ -2741,11 +2741,11 @@ AC_ARG_ENABLE(png,
if test "${enable_png}" != "no"; then if test "${enable_png}" != "no"; then
AC_CHECK_HEADERS(png.h, [ AC_CHECK_HEADERS(png.h, [
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
LDFLAGS="${LDFLAGS} -lz" LDFLAGS="${LDFLAGS} -lz $LIBM"
AC_CHECK_LIB(png, png_set_rows, [ AC_CHECK_LIB(png, png_set_rows, [
VLC_ADD_LIBS([png],[-lpng -lz -lm]) VLC_ADD_LIBS([png],[-lpng -lz $LIBM])
VLC_ADD_PLUGIN([png osdmenu osd_parser])], VLC_ADD_PLUGIN([png osdmenu osd_parser])],
[],[-lz]) [],[-lz $LIBM] )
VLC_RESTORE_FLAGS VLC_RESTORE_FLAGS
]) ])
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment