Browse Source

Adds the patch to disable building the shared library.

Building the shared library was broken for at least mips24_kc. Will
need to do more work to get that included.
Christopher Howard 6 years ago
parent
commit
aad959f69d
2 changed files with 21 additions and 0 deletions
  1. 1 0
      lang/tinyscheme/Makefile
  2. 20 0
      lang/tinyscheme/patches/001-makefile.patch

+ 1 - 0
lang/tinyscheme/Makefile

@@ -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

+ 20 - 0
lang/tinyscheme/patches/001-makefile.patch

@@ -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) $<