[vlc-commits] Fix libpng checking on OpenBSD
    Brad Smith 
    git at videolan.org
       
    Mon Jan 30 18:47:07 CET 2012
    
    
  
vlc | branch: master | Brad Smith <brad at comstyle.com> | 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 <remi at remlab.net>
> 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
    
    
More information about the vlc-commits
mailing list