OSDN Git Service

r297@cf-ppc-macosx: monabuilder | 2008-12-23 15:40:45 +0900
authormonabuilder <monabuilder@dabda00f-5829-0410-a8ea-e5f24da5a5ee>
Tue, 23 Dec 2008 06:40:51 +0000 (06:40 +0000)
committermonabuilder <monabuilder@dabda00f-5829-0410-a8ea-e5f24da5a5ee>
Tue, 23 Dec 2008 06:40:51 +0000 (06:40 +0000)
 Add PIZZA_ROOT_PREFIX support.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/pf3gnuchains/trunk@13 dabda00f-5829-0410-a8ea-e5f24da5a5ee

gcc/c-opts.c

index 589b05b..e81d223 100644 (file)
@@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
+/*
+ * This code was added PIZZA_ROOT_PREFIX hack
+ * by Masaki Muranka (monaka@monami-software.com)
+ */
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
@@ -1008,6 +1012,10 @@ c_common_post_options (const char **pfilename)
 
   sanitize_cpp_opts ();
 
+  if (!iprefix) { 
+    iprefix = getenv("PIZZA_ROOT_PREFIX");
+  }
+
   register_include_chains (parse_in, sysroot, iprefix, imultilib,
                           std_inc, std_cxx_inc && c_dialect_cxx (), verbose);