Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Way to keep track of GCC's Obj-C headers in clang?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
battletroll
n00b
n00b


Joined: 16 Apr 2007
Posts: 13
Location: Mexico

PostPosted: Sun Sep 30, 2012 2:57 pm    Post subject: Way to keep track of GCC's Obj-C headers in clang? Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum