[PATCH] Proper detection and handling of RHEL and variants

Rafael EspĂ­ndola via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 06:20:26 PDT 2016


r268914.

Thanks,
Rafael

On 26 March 2016 at 20:35, Michael Lampe <lampe at gcsc.uni-frankfurt.de> wrote:
> New patch attached. I've also removed RHEL4 which is now four years past EOL
> and certainly incapable of building or running any recent version of
> llvm/clang.
>
> -Michael
>
>
> Rafael EspĂ­ndola wrote:
>>
>> -  if (IsRedhat(Distro))
>> +  if (Distro == Fedora || Distro == RHEL7)
>>
>> RHEL8 will probably use --no-add-needed.
>>
>> Can you change this to "if (IsRedhat(Distro) && !old_rhel_distro) "?
>>
>> Cheers,
>> Rafael
>>
>>
>> On 22 March 2016 at 22:07, Michael Lampe via cfe-commits
>> <cfe-commits at lists.llvm.org> wrote:
>>>
>>> - Don't consider "/etc/lsb-release" to be Ubuntu only.
>>> - Detect SL, too.
>>> - Only add "--no-add-needed" for RHEL7 (or Fedora), not for RHEL6 (that's
>>> what the compilers shipped with RHEL do).
>>>
>>>
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>>>
>>
>


More information about the cfe-commits mailing list