pereckerdal/blackhole — Issue #30: Compile in osx
Author: wsxiaoys
Created: 2011-11-14 04:43:58+00:00
State: open

When executing the compile.sh, it will expand "_gambcgsc.c" to "_gambcgsc.c.c", which cause compile error.

diff --git a/compile.sh b/compile.sh
index e0367fa..165a0a5 100755
--- a/compile.sh
+++ b/compile.sh
@@ -1,5 +1,5 @@
#!/bin/sh
GAMBCLIBDIR="`gsc -e \"(display (path-expand \\\"~~lib\\\"))\"`"
-echo "bh.scm:" && gsc -link -l "$GAMBCLIBDIR/_gambcgsc.c" bh.scm && gsc -obj bh_.c bh.c && gsc -exe -ld-options "$GAMBCLIBDIR/libgambcgsc.a" bh_.o bh.o
+echo "bh.scm:" && gsc -link -l "$GAMBCLIBDIR/_gambcgsc" bh.scm && gsc -obj bh_.c bh.c && gsc -exe -ld-options "$GAMBCLIBDIR/libgambcgsc.a" bh_.o bh.o
rm -f bh_.o bh_.c bh.c bh.o