Package list libcryptx-perl / 6972b36
adapt compilation-flags.patch Damyan Ivanov 3 years ago
1 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
55 Bug: https://github.com/DCIT/perl-CryptX/pull/39
66 --- a/Makefile.PL
77 +++ b/Makefile.PL
8 @@ -12,6 +12,7 @@ my @myobjs = map { s|.c$|$Config{obj_ext
9 );
10 my $myextlib = "src/liballinone$Config{lib_ext}";
11 my $mycflags = "$Config{ccflags} $Config{cccdlflags} $Config{optimize}";
8 @@ -25,7 +25,7 @@ $mycflags =~ s/-Wwrite-strings\b//g;
9 $mycflags =~ s/-Wcast-qual\b//g;
10
11 #FIX: this is particularly useful for Debian https://github.com/DCIT/perl-CryptX/pull/39
12 -$mycflags = "$ENV{CFLAGS} $ENV{CPPFLAGS}" if $ENV{CFLAGS} || $ENV{CPPFLAGS};
1213 +$mycflags .= " $ENV{CFLAGS}" if $ENV{CFLAGS};
1314
14 #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
15 $mycflags =~ s/-flto\b//g;
15 #FIX: avoid "ar: fatal: Numeric group ID too large" see https://github.com/DCIT/perl-CryptX/issues/33
16 my $myarflags = '$(AR_STATIC_ARGS)';
1617 --- a/src/Makefile
1718 +++ b/src/Makefile
18 @@ -167,4 +167,4 @@ clean:
19 @@ -170,4 +170,4 @@ clean:
1920 .SUFFIXES: .o .c
2021
2122 .c$(OBJ_EXT):