[MacPorts] #34233: apple-gcc42 doesn't honor -isysroot correctly
MacPorts
noreply at macports.org
Fri Apr 27 17:22:14 PDT 2012
#34233: apple-gcc42 doesn't honor -isysroot correctly
-----------------------------------+----------------------------------------
Reporter: jeremyhu@… | Owner: royliu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: apple-gcc42
-----------------------------------+----------------------------------------
Comment(by jeremyhu@…):
Here's how I updated incpath.patch to work around the issue locally. I'd
rather have correct logic for setting 'p->add_sysroot' so we could also
apply this patch to the gccXX ports.
{{{
--- gcc/c-incpath.c.orig 2012-04-27 11:33:12.000000000 -0700
+++ gcc/c-incpath.c 2012-04-27 11:34:17.000000000 -0700
@@ -164,7 +164,7 @@ add_standard_paths (const char *sysroot,
char *str;
/* Should this directory start with the sysroot? */
- if (sysroot && p->add_sysroot)
+ if (sysroot && p->add_sysroot && strstr(p->fname, "apple-gcc42")
== NULL)
str = concat (sysroot, p->fname, NULL);
else
str = update_path (p->fname, p->component);
}}}
--
Ticket URL: <https://trac.macports.org/ticket/34233#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list