File-KDBX-XS
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# use bundled libtomcrypt
my @myobjs = map { /^(.*)\.c$/ ? "$1$Config{obj_ext}" : () } qw(
libtomcrypt/src/ciphers/aes/aes.c
libtomcrypt/src/misc/compare_testvector.c
libtomcrypt/src/misc/crypt/crypt_argchk.c
libtomcrypt/src/misc/zeromem.c
);
$mycflags = " $Config{ccflags} $Config{cccdlflags} $Config{optimize} "; # keep leading + trailing spaces
#FIX: this is particularly useful for Debian https://github.com/DCIT/perl-CryptX/pull/39
$mycflags .= " $ENV{CFLAGS} " if $ENV{CFLAGS};
$mycflags .= " $ENV{CPPFLAGS} " if $ENV{CPPFLAGS};
#### remove all lto hacks - https://github.com/DCIT/perl-CryptX/issues/70
## #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
## #FIX: another issue with "-flto=auto" see https://github.com/DCIT/perl-CryptX/pull/66
## $mycflags =~ s/\s-flto\S+\s/ /g; # -flto -flto=auto -flto=jobserver -flto=N ...
#FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89
$mycflags =~ s/\s-pedantic-errors\s/ /g;
$mycflags =~ s/\s-pedantic\s/ /g;
$mycflags =~ s/\s-std=c89\s/ /g;
( run in 0.738 second using v1.01-cache-2.11-cpan-8d75d55dd25 )