File: ld_as-needed-support.diff

package info (click to toggle)
rdiff-backup-fs 1.0.0-7
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 940 kB
  • sloc: sh: 3,800; ansic: 2,941; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download | duplicates (5)
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