Hi Tim, long time no speak :-)

If switching to clang it should just work with the makefile as is I
believe. You are right and need to set the default compiler to clang, to
temporarily do that you can set the environment variables like

export CXX=/usr/bin/clang++ ; export CC=/usr/bin/clang ; make

This is temp in that directory though, you can set these in .profile or
whatever. I think later versions after 10.7 may default to clang. The other
way is use the Apple command line tools to set this or you can just delete
the /usr/bin/cc /usr/bin/c++ and link these to the clang++ and clang
binaries. Possibly best to put these in your .bashrc for persistence if
that's your desire.

Probably a better question for stack overflow though ? Hope this helps
anyway. If you are using c++11 you will need to pass -stdlib=libc++ as well.

Best Regards
David Irvine

It's not difficult, it's different !

 <http://maidsafe.net>maidsafe.net Limited is a limited liability company
incorporated in Scotland with number SC297540. VAT Registered 889 0608 77.
Registered Office: 72 Templehill, Troon, KA10 6BE.
Telephone Scotland: +44  *1292 317311*



On Thu, Jan 16, 2014 at 9:49 AM, Tim Burgess <t...@raisedbar.net> wrote:

> Hi,
>
> I previously built crypto on Mac OSX 10.8 using GCC4.8, but found that
> other issues in my application mean that I can't continue down this path,
> so I need to rebuild using clang. However, my gcc and g++ aliases are
> pointing to the wrong places for gnumakefile to succeed (see below). Can
> anybody please advise me on how to reset these variables to point to
> Apple's clang and then provide a suitable make command-line to build the
> libraries with 10.7 SDK support? My current settings are:
>
>
> *macbook_pro:~ tim$ gcc -v*
>
> *Using built-in specs.*
>
> *Target: i686-apple-darwin11*
>
> *Configured with:
> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure
> --disable-checking --enable-werror
> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> --with-slibdir=/usr/lib --build=i686-apple-darwin11
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local
> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
> --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1*
>
> *Thread model: posix*
>
> *gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
> 2336.11.00)*
>
> *macbook_pro:~ tim$ g++ -v*
>
> *Using built-in specs.*
>
> *Target: i686-apple-darwin11*
>
> *Configured with:
> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure
> --disable-checking --enable-werror
> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
> --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> --with-slibdir=/usr/lib --build=i686-apple-darwin11
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local
> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
> --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1*
>
> *Thread model: posix*
>
>
>
> *gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
> 2336.11.00)*
>
> --
> --
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> cryptopp-users-unsubscr...@googlegroups.com.
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com.
> ---
> You received this message because you are subscribed to the Google Groups
> "Crypto++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cryptopp-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to