git: customcc: Fix the setup of the /usr/include path to use.

Sascha Wildner swildner at
Thu Aug 2 10:34:57 PDT 2012

commit c7c26905e41d70fe0ea9d02c5af1fc0a688408d4
Author: Sascha Wildner <saw at>
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/ |   39 +++++++++++++++++++++++++++++++++++----
 1 files changed, 35 insertions(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list