[Flac-dev] Typo in aclocal.m4


Wed Jun 6 09:53:16 PDT 2007


Hi Josh (and everyone else on the list),

Here's a quick fix for libFLAC.m4 and libFLAC++.m4 for a problem that
crops up if you use the macros in an environment where LD_LIBRARY_PATH
is set. The macros save LD_LIBRARY_PATH as ac_save_LDPATH, but restore
it from ac_save_LD_LIBRARY_PATH. This patch changes ac_save_LDPATH to
ac_save_LD_LIBRARY_PATH.

Without this, LD_LIBRARY_PATH effectively gets clobbered after using the
libflac macros.

-- 
Joshua Kwan


--- flac-1.1.4/src/libFLAC++/libFLAC++.m4~	2007-06-06 00:48:22.000000000 -0700
+++ flac-1.1.4/src/libFLAC++/libFLAC++.m4	2007-06-06 00:48:30.000000000 -0700
@@ -42,7 +42,7 @@
     ac_save_CFLAGS="$CFLAGS"
     ac_save_CXXFLAGS="$CXXFLAGS"
     ac_save_LIBS="$LIBS"
-    ac_save_LDPATH="$LD_LIBRARY_PATH"
+    ac_save_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
     CFLAGS="$CFLAGS $LIBFLACPP_CFLAGS"
     CXXFLAGS="$CXXFLAGS $LIBFLACPP_CFLAGS"
     LIBS="$LIBS $LIBFLACPP_LIBS"
--- flac-1.1.4/src/libFLAC/libFLAC.m4~	2007-06-06 00:47:56.000000000 -0700
+++ flac-1.1.4/src/libFLAC/libFLAC.m4	2007-06-06 00:48:04.000000000 -0700
@@ -39,7 +39,7 @@
     ac_save_CFLAGS="$CFLAGS"
     ac_save_CXXFLAGS="$CXXFLAGS"
     ac_save_LIBS="$LIBS"
-    ac_save_LDPATH="$LD_LIBRARY_PATH"
+    ac_save_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
     LIBS="$LIBS $LIBFLAC_LIBS"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 881 bytes
Desc: Digital signature
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20070606/9db99651/attachment.pgp


More information about the Flac-dev mailing list