DragonFly commits List (threaded) for 2012-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: customcc: Fix the setup of the /usr/include path to use.
commit c7c26905e41d70fe0ea9d02c5af1fc0a688408d4
Author: Sascha Wildner <saw@online.de>
Date: Thu Aug 2 19:16:08 2012 +0200
customcc: Fix the setup of the /usr/include path to use.
With the recent O_DIRECTORY addition, this apparent bug in the script was
exposed. Using -isysroot/-isystem doesn't seem to cut it for what we want
here (which is to completely override the /usr/include path).
I didn't verify in 100% detail, but all evidence looks like the reason is
that when -I is present on the command line, the paths of the headers
which are included by headers from this directory are not prefixed with
-isysroot's argument.
So for now, use -iprefix and -iwithbeforeprefix for /usr/include, which
seem to do what we want.
While here, add our copyright.
Reported-by: marino
Summary of changes:
libexec/customcc/cc.sh | 39 +++++++++++++++++++++++++++++++++++----
1 files changed, 35 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c7c26905e41d70fe0ea9d02c5af1fc0a688408d4
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]