summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2012-10-05 21:37:05 +0200
committerPeter Bex <peter@more-magic.net>2012-10-05 21:37:05 +0200
commit730e3ff9e081b0bbd78826f52ff8d83c0ed70e30 (patch)
tree164604151a7f5745d4a125d021b37c50585b1030
parent75a184bd4d476820ef50ea69be714dff173797ca (diff)
downloadscsh-process-0.2.1.tar.gz
Workaround for bug in 4.8.0 when loading scsh-process in compiled mode - it segfaults immediately. TODO: Figure out why0.2.1
-rw-r--r--scsh-process.setup11
-rw-r--r--tests/run.scm4
2 files changed, 12 insertions, 3 deletions
diff --git a/scsh-process.setup b/scsh-process.setup
index 6347af7..7d54201 100644
--- a/scsh-process.setup
+++ b/scsh-process.setup
@@ -1,2 +1,11 @@
;; -*- Scheme -*-
-(standard-extension 'scsh-process "0.2")
+
+;; Can't use standard-extension for now; 4.8.0's standard-extension uses -O3
+;; which implies -specialize. This generates code that causes a segfault.
+(compile -s -O2 -d1 scsh-process.scm -j scsh-process)
+(compile -s -O2 -d0 scsh-process.import.scm)
+
+(install-extension
+ 'scsh-process
+ '("scsh-process.so" "scsh-process.import.so")
+ '((version "0.2.1")))
diff --git a/tests/run.scm b/tests/run.scm
index c4deb88..56a823e 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -1,5 +1,5 @@
-(include "../scsh-process.scm")
-(import scsh-process)
+#;(include "../scsh-process.scm")
+(use scsh-process)
(use test posix srfi-13)