Permalink
Browse files

export SHLIBSUFFIX to XSLoader.

  • Loading branch information...
1 parent 28d7d0f commit 1f1f8bdfe13114ee614973837b77d9f2fe5f9d2b @tokuhirom committed Apr 5, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 BUGS
  2. +1 −0 SConstruct
  3. +4 −1 lib/XSLoader.tra
View
1 BUGS
@@ -12,6 +12,7 @@ KNOWN BUGS LIST
* possibly memory leaks in global destruction.
* sub a () { (1,2,3) } my ($a, $b, $c, $d, $e) = a() causes segfault
* my$x=4; { try { p($x); } }
+* use Config; tora_config()['SHLIBSUFFIX'];
__END__
use Test::More *;
View
@@ -223,6 +223,7 @@ with open('config.json', 'w') as f:
with open('lib/Config.tra', 'w') as f:
f.write("my $Config = {\n")
+ f.write(" SHLIBSUFFIX => '" + env.get("SHLIBSUFFIX") + "',\n")
f.write(" TORA_PREFIX => '" + TORA_PREFIX + "',\n")
f.write(" TORA_CC => '" + TORA_CC + "',\n")
f.write(" TORA_CXX => '" + TORA_CXX + "',\n")
View
@@ -1,4 +1,7 @@
-my $SOEXT = '.so';
+use Config *;
+
+my $conf = tora_config();
+my $SOEXT = $conf['SHLIBSUFFIX'];
sub load($pkg) {
for $LIBPATH -> $path {

0 comments on commit 1f1f8bd

Please sign in to comment.