[oe-commits] Chris Larson : autotools: symlink where we can

git version control git at git.openembedded.org
Fri Oct 22 03:31:00 UTC 2010


Module: openembedded.git
Branch: kergoth/autotools
Commit: 33739db8a16c4a708b33da4c3fc6645a616921c7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=33739db8a16c4a708b33da4c3fc6645a616921c7

Author: Chris Larson <chris_larson at mentor.com>
Date:   Tue Oct 19 19:50:41 2010 -0700

autotools: symlink where we can

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/autotools.bbclass |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 46d6d3d..7c998e4 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -36,10 +36,11 @@ gnu_configize_here() {
 		if [ ! -e ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ]; then
 			oefatal "gnu-config data files missing"
 		fi
-		oenote Updating config.sub and config.guess in $macrodir
-		rm -f $macrodir/config.sub $macrodir/config.guess
-		cp ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub $macrodir/config.sub
-		cp ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess $macrodir/config.guess
+		oenote "Updating config.sub and config.guess in $macrodir"
+		ln -sf ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub \
+		    $macrodir/config.sub
+		ln -sf ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess \
+		    $macrodir/config.guess
 	fi
 }
 
@@ -76,21 +77,21 @@ oe_autoreconf () {
 		if grep "sed.*POTFILES" $CONFIGURE_AC >/dev/null; then
 			: do nothing -- we still have an old unmodified configure.ac
 		else
-			echo "no" | glib-gettextize --force --copy
+			echo "no" | glib-gettextize --force
 		fi
 	else if grep "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
 		if [ -e ${STAGING_DATADIR}/gettext/config.rpath ]; then
-			cp ${STAGING_DATADIR}/gettext/config.rpath ${S}/
+			ln -sf ${STAGING_DATADIR}/gettext/config.rpath ${S}/
 		else
 			oenote ${STAGING_DATADIR}/gettext/config.rpath not found. gettext is not installed.
 		fi
 	fi
 	mkdir -p m4
-	autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} "$@" \
+	autoreconf -Wcross --verbose --install --symlink --force ${EXTRA_AUTORECONF} "$@" \
 	        || oefatal "autoreconf execution failed."
 
 	if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
-		intltoolize --copy --force --automake
+		intltoolize --force --automake
 	fi
 
 	gnu_configize_here





More information about the Openembedded-commits mailing list