Update of /cvsroot/fink/fink
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15910

Modified Files:
      Tag: branch_0_29
        ChangeLog compiler_wrapper.in 
Log Message:
backport compiler_wrapper (for ccache-default) edit from HEAD


Index: compiler_wrapper.in
===================================================================
RCS file: /cvsroot/fink/fink/compiler_wrapper.in,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- compiler_wrapper.in 5 Apr 2009 13:42:01 -0000       1.1
+++ compiler_wrapper.in 15 Jan 2010 17:59:34 -0000      1.1.2.1
@@ -1,2 +1,16 @@
 #!/bin/sh
-exec /usr/bin/${0##*/} -arch @ARCHITECTURE@ "$@"
+compiler=${0##*/}
+save_IFS="$IFS"
+IFS=:
+newpath=
+for dir in $PATH ; do
+  case $dir in
+    *var/lib/fink/path-prefix*) ;;
+    *) newpath="${newpath:+${newpath}:}$dir" ;;
+  esac
+done
+IFS="$save_IFS"
+export PATH="$newpath"
+exec $compiler -arch @ARCHITECTURE@ "$@"
+# strip path-prefix to avoid finding this wrapper again
+# @PREFIX@/bin is needed to pick up ccache-default

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/ChangeLog,v
retrieving revision 1.503.2.26
retrieving revision 1.503.2.27
diff -u -d -r1.503.2.26 -r1.503.2.27
--- ChangeLog   7 Jan 2010 02:08:41 -0000       1.503.2.26
+++ ChangeLog   15 Jan 2010 17:59:34 -0000      1.503.2.27
@@ -1,3 +1,7 @@
+2010-01-15  David Fang  <fang...@users.sourceforge.net>
+
+       * compiler_wrapper.in: finds %p/bin for ccache-default
+
 2010-01-06  Daniel Macks  <dma...@netspace.org>
 
        * all: update copyright


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to