]> TLD Linux GIT Repositories - packages/lvm2.git/blob - bashizm.patch
- updated to 2.03.11
[packages/lvm2.git] / bashizm.patch
1 diff -ur lvm2-2_03_07.orig/configure lvm2-2_03_07/configure
2 --- lvm2-2_03_07.orig/configure 2019-11-30 14:45:51.000000000 +0100
3 +++ lvm2-2_03_07/configure      2019-12-12 15:12:39.649000000 +0100
4 @@ -3077,7 +3077,7 @@
5  fi
6  case "$host_os" in
7         linux*)
8 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"} -Wl,--version-script,.export.sym"
9 +               CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
10                 # equivalent to -rdynamic
11                 ELDFLAGS="-Wl,--export-dynamic"
12                 # FIXME Generate list and use --dynamic-list=.dlopen.sym
13 @@ -3098,7 +3098,7 @@
14                 ;;
15         darwin*)
16                 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
17 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
18 +               CLDFLAGS="$CLDFLAGS"
19                 ELDFLAGS=
20                 CLDWHOLEARCHIVE="-all_load"
21                 CLDNOWHOLEARCHIVE=
22 @@ -3110,9 +3110,6 @@
23                 FSADM=no
24                 BLKDEACTIVATE=no
25                 ;;
26 -       *)
27 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
28 -               ;;
29  esac
30  
31  ################################################################################
32 diff -ur lvm2-2_03_07.orig/configure.ac lvm2-2_03_07/configure.ac
33 --- lvm2-2_03_07.orig/configure.ac      2019-11-30 14:45:51.000000000 +0100
34 +++ lvm2-2_03_07/configure.ac   2019-12-12 15:11:27.591000000 +0100
35 @@ -30,7 +30,7 @@
36  AS_IF([test -z "$CFLAGS"], [COPTIMISE_FLAG="-O2"])
37  case "$host_os" in
38         linux*)
39 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"} -Wl,--version-script,.export.sym"
40 +               CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
41                 # equivalent to -rdynamic
42                 ELDFLAGS="-Wl,--export-dynamic"
43                 # FIXME Generate list and use --dynamic-list=.dlopen.sym
44 @@ -51,7 +51,7 @@
45                 ;;
46         darwin*)
47                 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
48 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
49 +               CLDFLAGS="$CLDFLAGS"
50                 ELDFLAGS=
51                 CLDWHOLEARCHIVE="-all_load"
52                 CLDNOWHOLEARCHIVE=
53 @@ -63,9 +63,6 @@
54                 FSADM=no
55                 BLKDEACTIVATE=no
56                 ;;
57 -       *)
58 -               CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
59 -               ;;
60  esac
61  
62  ################################################################################