diff --git a/graphic/libjpeg/libjpeg.conf b/graphic/libjpeg/libjpeg.conf index f94eca9eb..19cb2f971 100644 --- a/graphic/libjpeg/libjpeg.conf +++ b/graphic/libjpeg/libjpeg.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../libjpeg/libjpeg.conf -# Copyright (C) 2006 The OpenSDE Project +# Copyright (C) 2006 - 2007 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -14,6 +14,10 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# avoid to use the libtool from the host while cross-compiling +atstage cross && hook_add preconf 5 'sed -i -e \ + "s,^[ \t]*\(LIBTOOL\)=.*,\1=$root/usr/bin/libtool," configure' + if [ "$SDECFG_STATIC" != 1 ] ; then var_append confopt " " "--enable-shared" fi