bump version
[buildroot.git] / package / jpeg / jpeg-libtool.patch
blob3c4b573e395987bba7db46c484ef9d871df79e5f
1 --- jpeg/configure
2 +++ jpeg/configure
3 @@ -1559,7 +1559,7 @@
4 if test "x$LTSTATIC" = xno; then
5 disable_static="--disable-static"
6 fi
7 - $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
8 + $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh $CHOST
9 fi
11 # Select memory manager depending on user input.
12 --- jpeg/ltconfig
13 +++ jpeg/ltconfig
14 @@ -299,6 +299,7 @@
15 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
16 case "$host_os" in
17 linux-gnu*) ;;
18 +linux-uclibc*) ;;
19 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
20 esac
22 @@ -553,7 +553,9 @@
23 # On HP-UX, both CC and GCC only warn that PIC is supported... then they
24 # create non-PIC objects. So, if there were any warnings, we assume that
25 # PIC is not supported.
26 + # Make sure we only test warnings on HP-UX (pic_flag == +Z) or we can
27 + # easily break Linux builds http://bugs.gentoo.org/70947
28 - if test -s conftest.err; then
29 + if test -s conftest.err -a "$pic_flag" = "+Z"; then
30 echo "$ac_t"no 1>&6
31 can_build_shared=no
32 pic_flag=
33 @@ -1210,7 +1210,6 @@
34 else
35 # Only the GNU ld.so supports shared libraries on MkLinux.
36 case "$host_cpu" in
37 - powerpc*) dynamic_linker=no ;;
38 *) dynamic_linker='Linux ld.so' ;;
39 esac
41 @@ -1259,6 +1260,25 @@
45 +linux-uclibc*)
46 + version_type=linux
47 + need_lib_prefix=no
48 + need_version=no
49 + library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
50 + soname_spec='${libname}${release}.so.$major'
51 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
52 + shlibpath_var=LD_LIBRARY_PATH
53 + shlibpath_overrides_runpath=no
54 + deplibs_check_method=pass_all
55 + # This implies no fast_install, which is unacceptable.
56 + # Some rework will be needed to allow for fast_install
57 + # before this can be enabled.
58 + # Note: copied from linux-gnu, and may not be appropriate.
59 + hardcode_into_libs=yes
60 + # Assume using the uClibc dynamic linker.
61 + dynamic_linker="uClibc ld.so"
62 + ;;
64 netbsd* | openbsd*)
65 version_type=sunos
66 library_names_spec='${libname}${release}.so.$versuffix'