my build = Module::Build->new(
extra_compiler_flags => '... -mmacosx-version-min=11.0',
extra_linker_flags => '... -mmacosx-version-min=11.0',
);
The problem is that Augeas' Build file has already some flags specified there. So, you could try to modify them with something like this (untested, just a rough sketch):
my $extra_cflags = $aug_cflags . ' ' . $libxml2_cflags . ' -Wall -Wfor
+mat -Werror=format-security';
my $extra_ldflags = $aug_libs . ' ' . $libxml2_cflags;
$extra_cflags =~ s/mmacosx-version-min=10\.13/mmacosx-version-min=11.0
+/g;
$extra_ldflags =~ s/mmacosx-version-min=10\.13/mmacosx-version-min=11.
+0/g;
print "Modified to $extra_cflags\n" ;
print "Modified to $extra_ldflags\n" ;
# insert the above before this:
print "Using $aug_libs and $aug_cflags to compile (Augeas version $aug
+_version)\n" ;
print "Using $libxml2_libs and $libxml2_cflags to compile (Augeas vers
+ion $aug_version)\n" ;
And then in the constructor
my $build = Module::Build->new
(
...
extra_compiler_flags => $extra_cflags,
extra_linker_flags => $extra_ldflags,
...
);
BTW, the option dynamic_config => 0 will create an intermediate file Build.PL which can be modified as per my 3rd suggestion. Currently for Augeas this is set to 1
Fletch's suggestion is also worth checking, perhaps with this:
perl -MConfig -e 'print $_.": ".$Config{$_}."\n" for keys %Config;'
bw, bliako |