]> git.pld-linux.org Git - packages/gettext.git/blob - gettext-libdir.patch
- updated to 0.22.5
[packages/gettext.git] / gettext-libdir.patch
1 --- gettext-0.19.8.1/gettext-runtime/gnulib-m4/lib-prefix.m4.orig       2016-06-11 14:59:32.000000000 +0200
2 +++ gettext-0.19.8.1/gettext-runtime/gnulib-m4/lib-prefix.m4    2017-02-05 14:26:12.237083553 +0100
3 @@ -205,12 +205,14 @@
4          for searchdir in $searchpath; do
5            if test -d "$searchdir"; then
6              case "$searchdir" in
7 +              */libx32/ | */libx32 ) acl_libdirstem=libx32 ;;
8                */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9                */../ | */.. )
10                  # Better ignore directories of this form. They are misleading.
11                  ;;
12                *) searchdir=`cd "$searchdir" && pwd`
13                   case "$searchdir" in
14 +                   */libx32 ) acl_libdirstem=libx32 ;;
15                     */lib64 ) acl_libdirstem=lib64 ;;
16                   esac ;;
17              esac
18 --- gettext-0.19.8.1/gettext-runtime/gnulib-m4/lib-link.m4.orig 2016-06-11 14:59:32.000000000 +0200
19 +++ gettext-0.19.8.1/gettext-runtime/gnulib-m4/lib-link.m4      2017-02-05 14:27:31.840415976 +0100
20 @@ -370,7 +370,12 @@
21            fi
22            if test "X$found_dir" != "X"; then
23              dnl Found the library.
24 +
25 +            if test "X$found_dir" = "X/usr/$acl_libdirstem" || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
26 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
27 +            else
28              LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
29 +            fi
30              if test "X$found_so" != "X"; then
31                dnl Linking with a shared library. We attempt to hardcode its
32                dnl directory into the executable's runpath, unless it's the
33 --- gettext-0.19.8.1/gettext-tools/gnulib-m4/lib-prefix.m4.orig 2016-06-11 14:59:32.000000000 +0200
34 +++ gettext-0.19.8.1/gettext-tools/gnulib-m4/lib-prefix.m4      2017-02-05 14:26:12.237083553 +0100
35 @@ -205,12 +205,14 @@
36          for searchdir in $searchpath; do
37            if test -d "$searchdir"; then
38              case "$searchdir" in
39 +              */libx32/ | */libx32 ) acl_libdirstem=libx32 ;;
40                */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
41                */../ | */.. )
42                  # Better ignore directories of this form. They are misleading.
43                  ;;
44                *) searchdir=`cd "$searchdir" && pwd`
45                   case "$searchdir" in
46 +                   */libx32 ) acl_libdirstem=libx32 ;;
47                     */lib64 ) acl_libdirstem=lib64 ;;
48                   esac ;;
49              esac
50 --- gettext-0.19.8.1/gettext-tools/gnulib-m4/lib-link.m4.orig   2016-06-11 14:59:32.000000000 +0200
51 +++ gettext-0.19.8.1/gettext-tools/gnulib-m4/lib-link.m4        2017-02-05 14:27:31.840415976 +0100
52 @@ -370,7 +370,12 @@
53            fi
54            if test "X$found_dir" != "X"; then
55              dnl Found the library.
56 +
57 +            if test "X$found_dir" = "X/usr/$acl_libdirstem" || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
58 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
59 +            else
60              LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
61 +            fi
62              if test "X$found_so" != "X"; then
63                dnl Linking with a shared library. We attempt to hardcode its
64                dnl directory into the executable's runpath, unless it's the
This page took 0.131758 seconds and 3 git commands to generate.