vlc | branch: master | Brad Smith <[email protected]> | Mon Jan 30 02:58:38 2012 -0500| [900041eb4d79eadc51a32c879fbedfa6262be767] | committer: 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: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=900041eb4d79eadc51a32c879fbedfa6262be767 --- configure.ac | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e4afd39..db47a2c 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 $LIBM" 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])], - [],[-lz]) + [],[-lz $LIBM] ) VLC_RESTORE_FLAGS ]) fi _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
