Code

make perlbuild more portable
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 21 Nov 2007 06:47:17 +0000 (06:47 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 21 Nov 2007 06:47:17 +0000 (06:47 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1240 a5681a0c-68f1-0310-ab6d-d61299d08faa

bindings/perl-shared/Makefile.PL
configure.ac

index 863444c787c423c14a571c599a2ebe7a5a5a9f3e..8793dd8fb78874e62e3877396cd77cee4a836e69 100644 (file)
@@ -31,7 +31,9 @@ WriteMakefile(
     'DEFINE'      => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
     'INC'          => '-I../../src',
     # Perl will figure out which one is valid
-    'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
+    #'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
+    'depend'       => {'RRDs.c' => "../../src/librrd.la"},
+    'LDFROM'       => '$(OBJECT) '.$librrd, 
     'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' }
 );
 
index 791243646d9f0a64efda93a3f1ffa5b1cfa29185..9d1f5f9adee884ba43d942ecc9341b81327eebb4 100644 (file)
@@ -91,6 +91,7 @@ AH_BOTTOM([
 #ifdef HAVE_SYS_MMAN_H
 # include <sys/mman.h>
 #endif
+
 #if !defined HAVE_MADVISE && defined HAVE_POSIX_MADVISE
 /* use posix_madvise family */
 # define madvise posix_madvise