develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134189] configure: ubuntu without gcc

Thread Previous | Thread Next
From:
Hugo van der Sanden via RT
Date:
June 11, 2019 15:41
Subject:
[perl #134189] configure: ubuntu without gcc
Message ID:
rt-4.0.24-28615-1560267697-1252.134189-15-0@perl.org
On Mon, 10 Jun 2019 14:06:38 -0700, ilmari wrote:
> As far as I can tell there's no
> Configure variable for this, but Configure has a comment that
> ccname=gcc for clang

Sadly that doesn't appear to be the case here: after removing gcc{,-7} again to test, $ccname is empty when I try that here. The concept works though: using instead
 +elif [ X"$cc" = Xclang ] ; then
 +    gcc=$cc
does give me a successful build.

I'm sure there are better ways to do this: we should at least allow for both 'clang' and '/usr/bin/clang'. I'd also be tempted to test this before '-x /usr/bin/gcc', on the assumption that if the invoker asked for clang we should try to use it.

Hugo

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=134189

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About