So here's the deal:
I need to fake sysroot with Apple's gcc, and I'm using the -isysroot parameter to do this.
The problem is, I have a bunch of include dirs that need to go with the default system include dirs, but I can't put -I in my CFLAGS or any -I after it would get bumped back a place in search priorities.
Apple's man page says this:
Quote:
-idirafter dir
Search dir for header files, but do it after all directories specified with -I and the standard
system directories have been exhausted. dir is treated as a system include directory.
|
But does the "system directories" here mean the real system directories or does it include my -isysroot dir? The blurb about -isysroot says it marks the specified dir as a system dir too..
Basically, I want it to go like this:
1. My includes with -I
2. Fake sysroot / extraneous default include dirs
3. Real sysroot
I also have a bunch of libs that need to be rigged the same way. Moving the files around isn't an option for me.
Is there a way to rig CFLAGS to do this or will I have to manually append -I extraneous dirs to it's correct place to every project I start?
Help would be appreciated.
PS. I'm a bit embarrassed to admit as a mere hobbyist I'm not a very savvy coder, so please excuse my stupidity if this is a dumb question. Google gave me irrelevant answers, so here I am >_>
EDIT: Nevermind.. I found -isystem.. guess I overlooked it