From 730e3ff9e081b0bbd78826f52ff8d83c0ed70e30 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Fri, 5 Oct 2012 21:37:05 +0200 Subject: Workaround for bug in 4.8.0 when loading scsh-process in compiled mode - it segfaults immediately. TODO: Figure out why --- scsh-process.setup | 11 ++++++++++- tests/run.scm | 4 ++-- 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) -- cgit v1.2.3