Package list libcryptx-perl / 0b60d9b
drop compilation-flags, applied upstream Damyan Ivanov 3 years ago
2 changed file(s) with 0 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
+0
-25
debian/patches/compilation-flags.patch less more
0 Description: accept CFLAGS and CPPFLAGS from the environment
1 This is particularly useful for Debian, where the build system puts
2 various hardening flags in CFLAGS and CPPFLAGS
3 Author: Damyan Ivanov <dmn@debian.org>
4 Forwarded: https://github.com/DCIT/perl-CryptX/pull/39
5 Bug: https://github.com/DCIT/perl-CryptX/pull/39
6 --- a/Makefile.PL
7 +++ b/Makefile.PL
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};
13 +$mycflags .= " $ENV{CFLAGS}" if $ENV{CFLAGS};
14
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)';
17 --- a/src/Makefile
18 +++ b/src/Makefile
19 @@ -170,4 +170,4 @@ clean:
20 .SUFFIXES: .o .c
21
22 .c$(OBJ_EXT):
23 - $(CC) -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC $(CFLAGS) -c $< -o $@
24 + $(CC) -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+0
-1
debian/patches/series less more
0 compilation-flags.patch