tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: fixing devel/gmp for MacOS X/clang
>> That OS X version do you use?
>
> Darwin ernie.muppets.liwing.de 12.5.0 Darwin Kernel Version 12.5.0: Mon Jul
> 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64 x86_64
>
>> What Xcode?
>
> $ xcode-select --version
> xcode-select version 2311.
> (XCode 5.0 - see referred mail from tron@)
>
>> Which SDK?
>
> Recent
>
>> Have you installed Command Line Tools?
>
>
> Well - No, I hacked the binary clang via hex-console.
> $ clang --version
> Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin12.5.0
> Thread model: posix
In that case, you should create symbolic link from recent SDK to /usr/include:
sudo ln -h -f -s
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
/usr/include
This is required to auto-detect built-in packages.
And you need to provide:
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
to compiler flags, and
-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
to linker flags.
:)
Kind regards,
Adam
Home |
Main Index |
Thread Index |
Old Index