From e810eb7a12d58db2b79627794f40692e53b26ff6 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 12 Jun 2007 16:48:05 +0000 Subject: [PATCH] * fixed tar cross-compiling by injecting '__restrict' into config.cache git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21320 10447126-35f2-4685-b0cf-6dd780d3921f --- archiver/tar/tar.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/archiver/tar/tar.conf b/archiver/tar/tar.conf index 6de2ccbe1..2e6797c1d 100644 --- a/archiver/tar/tar.conf +++ b/archiver/tar/tar.conf @@ -1,7 +1,8 @@ -# --- T2-COPYRIGHT-NOTE-BEGIN --- +# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # -# T2 SDE: package/.../tar/tar.conf +# Filename: package/.../tar/tar.conf +# Copyright (C) 2007 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -11,10 +12,12 @@ # it under the terms of the GNU General Public License as published by # 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 --- +# --- SDE-COPYRIGHT-NOTE-END --- var_append confopt ' ' '-C' +atstage cross && var_append configcache ' ' "ac_cv_c_restrict=__restrict" + if ! atstage toolchain; then hook_add postmake 5 "mv -v $root/usr/bin/tar $root/bin/tar ; \ install -m 0644 -o root -g root ${builddir}/$pkg-$ver/tar.1 $root/usr/man/man1/"