Re: Compiling ObjC++ versus ObjC

2013-01-24 Thread Michael Dickens
On Jan 23, 2013, at 7:10 PM, Jeremy Huddleston Sequoia wrote > Well, I encourage you to submit these change upstream, so developers *can* > rely on them =) I'll check out the Qt tickets. > No, you should fix it right (defaulting to $CXX). For comparison, this is > what autoconf does: > >

Re: Compiling ObjC++ versus ObjC

2013-01-23 Thread Jeremy Huddleston Sequoia
On Jan 23, 2013, at 12:09 PM, Michael Dickens wrote: > On Jan 23, 2013, at 12:06 PM, Jeremy Huddleston Sequoia > wrote: >> Yep, I think you hit the nail on the head. In short, you pretty much want >> to do: >> >> CC = clang >> CXX = clang++ >> OBJCC = ${CC} >> OBJCXX = ${CXX} >> >> ${CC} ${

Re: Compiling ObjC++ versus ObjC

2013-01-23 Thread Michael Dickens
On Jan 23, 2013, at 12:06 PM, Jeremy Huddleston Sequoia wrote: > Yep, I think you hit the nail on the head. In short, you pretty much want to > do: > > CC = clang > CXX = clang++ > OBJCC = ${CC} > OBJCXX = ${CXX} > > ${CC} ${CPPFLAGS} ${CFLAGS} -c my.c -o my.o > ${CXX} ${CPPFLAGS} ${CXXFLAGS}

Re: Compiling ObjC++ versus ObjC

2013-01-23 Thread Jeremy Huddleston Sequoia
Yep, I think you hit the nail on the head. In short, you pretty much want to do: CC = clang CXX = clang++ OBJCC = ${CC} OBJCXX = ${CXX} ${CC} ${CPPFLAGS} ${CFLAGS} -c my.c -o my.o ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c my.cc -o my.o ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c my.cpp -o my.o ${CXX} ${CPPFLAGS}

Compiling ObjC++ versus ObjC

2013-01-23 Thread Michael Dickens
I'm working on adding a c++11 variant to qt4-mac, which requires that all of the Qt libraries be compiled using "-std=c++11". Most of Qt compiles without complaint, and the few files with issues are generally easy to correct once the build errors out. Qt4 uses a bunch of what would by current pra