This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2 of 2] patches/ltrace/0.5.3: allow external setting of HOST_OS and AR


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1313950788 -7200
# Node ID 0717342726c2d5684a6cc8ea819f5152258afd7d
# Parent  bceb628fd2599a38f9fbb906db70d1781ed1c478
patches/ltrace/0.5.3: allow external setting of HOST_OS and AR

HOST_OS really is the target OS. Allow setting it for configure
via an environment variable.
libltrace.a should have an index:
Allow ar to be set as an environment variable, and generate
an index in this lib.

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

diff -r bceb628fd259 -r 0717342726c2 patches/ltrace/0.5.3/180-build-portable.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/ltrace/0.5.3/180-build-portable.patch	Sun Aug 21 20:19:48 2011 +0200
@@ -0,0 +1,47 @@
+diff -ru ltrace-0.5.3.org/Makefile.in ltrace-0.5.3/Makefile.in
+--- ltrace-0.5.3.org/Makefile.in	2011-08-21 18:55:15.000000000 +0200
++++ ltrace-0.5.3/Makefile.in	2011-08-21 18:40:53.000000000 +0200
+@@ -15,6 +15,7 @@
+ mandir		= @mandir@
+ docdir		= $(prefix)/share/doc/ltrace
+ 
++AR		=	@AR@
+ CC		=	@CC@
+ CFLAGS		=	-Wall @CFLAGS@
+ CPPFLAGS	=	-iquote $(TOPDIR) -iquote $(TOPDIR)/sysdeps/$(OS) -DSYSCONFDIR=\"$(sysconfdir)\" @CPPFLAGS@
+@@ -39,7 +40,7 @@
+ 		$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+ 
+ libltrace.a: 	sysdeps/sysdep.o $(OBJ)
+-		$(AR) rcv $@ $^
++		$(AR) rscv $@ $^
+ 
+ $(OBJ):		sysdeps/sysdep.o
+ 
+diff -ru ltrace-0.5.3.org/configure ltrace-0.5.3/configure
+--- ltrace-0.5.3.org/configure	2011-08-21 18:55:15.000000000 +0200
++++ ltrace-0.5.3/configure	2011-08-21 18:54:46.000000000 +0200
+@@ -15,8 +15,12 @@
+ echo $PACKAGE_VERSION
+ 
+ echo -n "checking HOST_OS... "
+-HOST_OS=$( uname -s )
+-if [ "$HOST_OS" = "Linux" ]
++if [ -z "$HOST_OS" ] ; then
++  HOST_OS=$( uname -s )
++else
++  echo -n "using preset: "
++fi
++if [ "$HOST_OS" = "Linux" -o "$HOST_OS" = "linux" ]
+ then
+   HOST_OS="linux-gnu"
+ fi
+@@ -113,7 +117,7 @@
+ #
+ # Makefile.in -> Makefile
+ #
+-x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
++x_subst_vars='PACKAGE_VERSION HOST HOST_OS INSTALL AR CC CPPFLAGS CFLAGS LDFLAGS LIBS iquote iquoteend prefix sysconfdir mandir docdir'
+ 
+ for i in $x_subst_vars
+ do
diff -r bceb628fd259 -r 0717342726c2 scripts/build/debug/400-ltrace.sh
--- a/scripts/build/debug/400-ltrace.sh	Sun Aug 21 17:54:12 2011 +0200
+++ b/scripts/build/debug/400-ltrace.sh	Sun Aug 21 20:19:48 2011 +0200
@@ -38,7 +38,9 @@
         esac
         CT_DoExecLog CFG                \
         CC="${CT_TARGET}-${CT_CC}"      \
+        AR="${CT_TARGET}-ar"            \
         HOST="${ltrace_host}"           \
+        HOST_OS="${CT_TARGET_KERNEL}"   \
         CFLAGS="${CT_TARGET_CFLAGS}"    \
         ./configure --prefix=/usr
     else

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]