battletroll n00b
Joined: 16 Apr 2007 Posts: 13 Location: Mexico
|
Posted: Sun Sep 30, 2012 2:57 pm Post subject: Way to keep track of GCC's Obj-C headers in clang? |
|
|
Hi.
When I started trying to use clang to compile Obj-C programs, they'd fail in the "configure" phase with an error like:
Quote: | checking for objc/objc.h... no | [/post][/quote]
"Solved" it by adding an "OBJCFLAGS" line to my configuration line:
Code: | CFLAGS="-Os -pipe -fomit-frame-pointer -march=k8"
CXXFLAGS="${CFLAGS}"
OBJCFLAGS= -I/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.3/include/
|
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:
Code: |
OBJCFLAGS= -I/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.4/include/
|
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! |
|