Index: package/develop/apr-util/apr-util.conf
===================================================================
--- package/develop/apr-util/apr-util.conf      (revision 37710)
+++ package/develop/apr-util/apr-util.conf      (working copy)
@@ -11,11 +11,16 @@
 # the Free Software Foundation; version 2 of the License. A copy of the
 # GNU General Public License can be found in the file COPYING.
 # --- T2-COPYRIGHT-NOTE-END ---
-
 if atstage "cross"; then
        var_append makeopt ' ' 'LIBTOOL=$root/usr/bin/libtool'
+       # this only happen when cross building 64 bit T2 on 32 bit host:
+       # During the iconv lib test configure will try to
+       # link against /lib, instead of /lib64, and fail the iconv test,
+ [ ! -e /lib64 ] && [[ $libdir = *lib64 ]] && export LDFLAGS="-L $root/lib64 -L $root/usr/lib64"
 fi

+
+
 # APR is mandatory, so no additional test needed.
 pkgprefix -t apr
 var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
@@ -45,7 +50,7 @@
 if pkginstalled bdb; then
        var_append extraconfopt ' ' '--with-dbm=db44'
        var_append extraconfopt ' ' \
-                  "--with-berkeley-db=`pkgprefix includedir bdb`"
+                  "--with-berkeley-db=$root$( pkgprefix includedir bdb )"
 fi

 # fix .la files in combination with libsuff.patch



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to