Skip to content

Commit

Permalink
Fix clang on macOS (#1313)
Browse files Browse the repository at this point in the history
Adds clang/cpp arguments to fix build problem that has cropped up
in more recent versions of clang/Xcode when users install Guiguts.
In particular, compiling the Perl Tk module (installed via
`install_cpan_modules.pl`) has been an issue recently, as reported
by some Mac PPers.

Fixes #1312
  • Loading branch information
tangledhelix authored Nov 29, 2024
1 parent 4f558f6 commit 9824b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/install_cpan_modules.pl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
# pointing to which might be the one that came with macOS.
if ( $^O eq 'darwin' ) {

# https://xkcd.com/927/
$ENV{"CFLAGS"} = "-std=c89";
$ENV{"CPPFLAGS"} = "-std=c89";

# Intel
if ( -e "/usr/local/bin/cpanm" ) {
$cpanm = "perl /usr/local/bin/cpanm";
Expand Down

0 comments on commit 9824b1d

Please sign in to comment.