svn commit: r247167 - stable/9/contrib/gcc
Tim Kientzle
kientzle at FreeBSD.org
Sat Feb 23 04:51:21 UTC 2013
Author: kientzle
Date: Sat Feb 23 04:51:20 2013
New Revision: 247167
URL: http://svnweb.freebsd.org/changeset/base/247167
Log:
MFC support for -print-file-name=include.
Modified:
stable/9/contrib/gcc/gcc.c
Directory Properties:
stable/9/contrib/gcc/ (props changed)
Modified: stable/9/contrib/gcc/gcc.c
==============================================================================
--- stable/9/contrib/gcc/gcc.c Fri Feb 22 22:40:10 2013 (r247166)
+++ stable/9/contrib/gcc/gcc.c Sat Feb 23 04:51:20 2013 (r247167)
@@ -2696,6 +2696,17 @@ find_a_file (const struct path_prefix *p
return xstrdup (DEFAULT_LINKER);
#endif
+#ifdef FREEBSD_NATIVE
+ if (! strcmp(name, "include"))
+ {
+#ifdef CROSS_INCLUDE_DIR
+ return xstrdup(CROSS_INCLUDE_DIR);
+#else
+ return xstrdup(STANDARD_INCLUDE_DIR);
+#endif
+ }
+#endif
+
/* Determine the filename to execute (special case for absolute paths). */
if (IS_ABSOLUTE_PATH (name))
More information about the svn-src-stable-9
mailing list