From 621d5391649011aa63b5d3f706f6f2544a03fc21 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 9 Oct 2009 18:11:14 +0000 Subject: Drop the SWIG wrappers; never worked. Move the XS wrappers to src/wrap/perl-xs --- src/wrap/perl-xs/Makefile.PL | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/wrap/perl-xs/Makefile.PL (limited to 'src/wrap/perl-xs/Makefile.PL') diff --git a/src/wrap/perl-xs/Makefile.PL b/src/wrap/perl-xs/Makefile.PL new file mode 100644 index 000000000..d35c99168 --- /dev/null +++ b/src/wrap/perl-xs/Makefile.PL @@ -0,0 +1,29 @@ +use ExtUtils::MakeMaker; + +my ($cc, $cflags, $lids); +if ( $^O eq 'MSWin32' ) +{ +# $cflags = ''; +# $libs = ':nosearch -lgdi32 -llibeay32'; +} +else +{ + $cc = 'g++'; + $cflags = '-fexceptions ' . qx( botan-config --cflags ); + $libs = qx( botan-config --libs ); +} + +WriteMakefile( + 'NAME' => 'Botan', + 'DISTNAME' => 'Botan-XS', + 'VERSION_FROM' => 'Botan.pm', # finds $VERSION + 'XSOPT' => '-C++', + 'CC' => $cc, + 'LD' => '$(CC)', + 'CCFLAGS' => $cflags, + 'LIBS' => [ $libs ], + 'OPTIMIZE' => '-g', +# 'clean' => { +# 'FILES' => 'neco.p12 rnd', +# }, +); -- cgit v1.2.3 From 7f7b68d60b1286be70c07b315ed64cd9dfa48943 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 9 Oct 2009 18:29:36 +0000 Subject: Use -Wno-write-strings in XS wrapper to avoid many warnings --- src/wrap/perl-xs/Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wrap/perl-xs/Makefile.PL') diff --git a/src/wrap/perl-xs/Makefile.PL b/src/wrap/perl-xs/Makefile.PL index d35c99168..46317e72b 100644 --- a/src/wrap/perl-xs/Makefile.PL +++ b/src/wrap/perl-xs/Makefile.PL @@ -9,7 +9,7 @@ if ( $^O eq 'MSWin32' ) else { $cc = 'g++'; - $cflags = '-fexceptions ' . qx( botan-config --cflags ); + $cflags = '-Wno-write-strings -fexceptions ' . qx( botan-config --cflags ); $libs = qx( botan-config --libs ); } -- cgit v1.2.3