Skip to content
Browse files

Avoid harcoding the .so extension when building shared libraries from…

… p5test.
  • Loading branch information...
1 parent e993223 commit 0aaf9bff81aeb8de8d53c21c324740a28049efe4 @pmurias pmurias committed Jan 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 p5test/p5test.pl
View
4 p5test/p5test.pl
@@ -37,7 +37,7 @@
END
system($csc,"test4.cs");
-system("$cc -shared -o test4lib.so test4lib.c");
+system("$cc -shared -o test4lib.$Config{so} test4lib.c");
my $ok4 = `mono test4.exe`;
is $ok4,"OK 4\n","We call C code from mono";
@@ -50,7 +50,7 @@ END
END
system($csc,"test5.cs");
-system("$cc -shared -o test5lib.so test5lib.c $ccopts $ldopts");
+system("$cc -shared -o test5lib.$Config{so} test5lib.c $ccopts $ldopts");
my $ok5 = `mono test5.exe`;
is $ok5,"OK 5\n","We call C code from mono";

0 comments on commit 0aaf9bf

Please sign in to comment.
Something went wrong with that request. Please try again.