[PATCH] [CMake/PPC64]: Add -mminimal-toc to CFLAGS if compiler is gcc < 4.6 on powerpc64

Kai Nacke kai.nacke at redstar.de
Mon Jun 3 22:57:00 PDT 2013


Ping.

On 01.06.2013 21:17, Kai Nacke wrote:
> Hi!
>
> To compile LLVM with gcc < 4.6 on a powerpc64 platform you have to add
> -mminimal-toc to CFLAGS / CXXFLAGS. Otherwise you get strange linker
> errors.
>
> The attached patch adds a check for these conditions and adds the
> compiler flag if required.
>
> Please review.
>
> Regards
> Kai
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list