1 fix option handling in Makefile.PL
3 the call to GetOptions() must be unique.
5 Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
6 see https://github.com/lstein/Perl-GD/pull/6
9 ===================================================================
13 my ($options,$lib_gd_path,$lib_ft_path,$lib_png_path,$lib_jpeg_path,$lib_xpm_path,$lib_zlib_path,$force);
16 -GetOptions("ignore_missing_gd" => \$force);
17 +my $result = GetOptions("options=s" => \$options,
18 + "lib_gd_path=s" => \$lib_gd_path,
19 + "lib_ft_path=s" => \$lib_ft_path,
20 + "lib_png_path=s" => \$lib_png_path,
21 + "lib_jpeg_path=s" => \$lib_jpeg_path,
22 + "lib_xpm_path=s" => \$lib_xpm_path,
23 + "lib_zlib_path=s" => \$lib_zlib_path,
24 + "ignore_missing_gd" => \$force,
27 unless (try_to_autoconfigure(\$options,\$lib_gd_path,\@INC,\@LIBPATH,\@LIBS) || $force) {
30 #############################################################################################
31 # Build options passed in to script to support reproducible builds via Makefiles
32 #############################################################################################
33 -my $result = GetOptions("options=s" => \$options,
34 - "lib_gd_path=s" => \$lib_gd_path,
35 - "lib_ft_path=s" => \$lib_ft_path,
36 - "lib_png_path=s" => \$lib_png_path,
37 - "lib_jpeg_path=s" => \$lib_jpeg_path,
38 - "lib_xpm_path=s" => \$lib_xpm_path,
39 - "lib_zlib_path=s" => \$lib_zlib_path,
43 Usage: perl Makefile.PL [options]