# HG changeset patch # User truelight # Date 2007-03-06 22:41:50 # Node ID ce3bae8dc76af1aef48cd48d7e67679b2d0cffe1 # Parent a071ce2e953190e81e3d69a730917019933425c1 (svn r9045) -Fix [Config]: libpng-config --ldflags returns --libs and -L_opts too, no need to call it an extra time (double -lpng12 in LDFLAGS) diff --git a/config.lib b/config.lib --- a/config.lib +++ b/config.lib @@ -779,10 +779,10 @@ make_cflags_and_ldflags() { if [ "$os" = "OSX" ]; then LIBS="$LIBS `$png_config --prefix`/lib/libpng.a" else - LIBS="$LIBS `$png_config --static --ldflags --libs --L_opts | tr '\n\r' ' '`" + LIBS="$LIBS `$png_config --static --ldflags | tr '\n\r' ' '`" fi else - LIBS="$LIBS `$png_config --ldflags --libs --L_opts | tr '\n\r' ' '`" + LIBS="$LIBS `$png_config --ldflags | tr '\n\r' ' '`" fi fi