From 9935c592f64d1d94dabb052cea5f2d2da0151e29 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 24 Feb 2009 19:34:56 -0800 Subject: [PATCH] avoid sigar.o/Sigar.o clash on case insensitive filesystems --- bindings/SigarBuild.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/SigarBuild.pm b/bindings/SigarBuild.pm index c77cbc82..17291b64 100644 --- a/bindings/SigarBuild.pm +++ b/bindings/SigarBuild.pm @@ -112,6 +112,10 @@ sub inline_src { } for my $file (@$src) { my $cf = basename $file; + #sigar.c -> libsigar.c else + #sigar.o and perl Sigar.o clash on case insensitive filesystems + $cf = 'libsigar.c' if $cf eq 'sigar.c'; + push @files, $cf; if ($flags->{is_win32}) { copy($file, $cf);