Joined: 16 Apr 2007
|Posted: Sun Sep 30, 2012 2:57 pm Post subject: Way to keep track of GCC's Obj-C headers in clang?
When I started trying to use clang to compile Obj-C programs, they'd fail in the "configure" phase with an error like:
|checking for objc/objc.h... no |
"Solved" it by adding an "OBJCFLAGS" line to my configuration line:
|CFLAGS="-Os -pipe -fomit-frame-pointer -march=k8"
I upgraded GCC's version this line should've been changed, but forgot to do so.
When I tried to upgrade app-arch/unar (aka "The Unarchiver"), got the same error message, went through the same search... to realize I had to modify that line so it pointed to current GCC's location:
This looks patchy to me, so my question is:
Is there a better form to do it?
I feel there must be a better way to automatically keep track of current GCC's version so clang can use its Objective-C header files!