Adds the patch to disable building the shared library. 2/head
authorChristopher Howard <christopher.howard@qlfiles.net>
Wed, 9 May 2018 23:24:43 +0000 (15:24 -0800)
committerChristopher Howard <christopher.howard@qlfiles.net>
Wed, 9 May 2018 23:24:43 +0000 (15:24 -0800)
Building the shared library was broken for at least mips24_kc. Will
need to do more work to get that included.

lang/tinyscheme/Makefile
lang/tinyscheme/patches/001-makefile.patch [new file with mode: 0644]

index f07c8e4979ac6fefbec54258941a8055b96c4b41..b4a78dc0f0f05963b62d5dcf806753acbb1b4349 100644 (file)
@@ -45,6 +45,7 @@ endef
 define Package/tinyscheme/description
        TinyScheme is a lightweight Scheme interpreter that implements as large a
        subset of R5RS as was possible without getting very large and complicated.
+        This package installs only the tinyscheme binary, not the shared library.
 endef
 
 define Build/Configure
diff --git a/lang/tinyscheme/patches/001-makefile.patch b/lang/tinyscheme/patches/001-makefile.patch
new file mode 100644 (file)
index 0000000..6417ca7
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/makefile 2013-04-14 12:08:33.000000000 -0800
++++ a/makefile 2018-05-01 09:12:00.895474940 -0800
+@@ -34,7 +34,7 @@
+ LDFLAGS = -shared
+ DEBUG=-g -Wno-char-subscripts -O
+ SYS_LIBS= -ldl -lm
+-PLATFORM_FEATURES= -DSUN_DL=1
++PLATFORM_FEATURES= -DSUN_DL=1 -DInitFile=\"/usr/lib/tinyscheme/init.scm\"
+ # Cygwin
+ #PLATFORM_FEATURES = -DUSE_STRLWR=0
+@@ -68,7 +68,7 @@
+ LIBTARGET = $(LIBPREFIX)tinyscheme.$(SOsuf)
+ STATICLIBTARGET = $(LIBPREFIX)tinyscheme.$(LIBsuf)
+-all: $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT)
++all: scheme$(EXE_EXT)
+ %.$(Osuf): %.c
+       $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $<