1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Place libraries in LIBS variable. This ensures correct order of
parameters for ld, allowing to link with --as-needed option.
Author: Ilya Barygin <barygin@gmail.com>
Bug-Ubuntu: https://launchpad.net/bugs/803192
--- a/configure.ac
+++ b/configure.ac
@@ -47,11 +47,11 @@ dnl checking type of system to provide p
case ${host} in
*-*-linux-*|*-*-k*bsd*-*) AC_SUBST(CFLAGS, ["-Wall -O3 `pkg-config --cflags fuse`"])
- AC_SUBST(LDFLAGS, ["`pkg-config --cflags --libs fuse` -lz"]);;
+ AC_SUBST(LIBS, ["$LIBS `pkg-config --cflags --libs fuse` -lz"]);;
*-*-bsd-*) AC_SUBST(CFLAGS, ["-Wall -O3 `pkg-config --cflags fuse`"])
- AC_SUBST(LDFLAGS, ["`pkg-config --cflags --libs fuse` -lz"]);;
+ AC_SUBST(LIBS, ["$LIBS `pkg-config --cflags --libs fuse` -lz"]);;
*-*-darwin*) AC_SUBST(CFLAGS, ["-Wall -O3 `pkg-config --cflags fuse`"])
- AC_SUBST(LDFLAGS, ["`pkg-config --cflags --libs fuse` -lz"]);;
+ AC_SUBST(LIBS, ["$LIBS `pkg-config --cflags --libs fuse` -lz"]);;
*) AC_MSG_WARN(No automatic flags for this host system; set compile/linking flags manually);;
esac
|