0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-31 21:22:27 +00:00
Tee KOBAYASHI 0bfeee0867 tinyscheme: Fix build
%ci:no-build
2023-04-05 12:39:45 +09:00

44 lines
985 B
Diff

diff -u -r ../tinyscheme-1.41/makefile ./makefile
--- ../tinyscheme-1.41/makefile 2013-04-14 16:08:33.000000000 -0400
+++ ./makefile 2016-02-03 07:50:01.896212523 -0500
@@ -18,7 +18,6 @@
#AR= echo
# Unix, generally
-CC = gcc -fpic -pedantic
DEBUG=-g -Wall -Wno-char-subscripts -O
Osuf=o
SOsuf=so
@@ -27,11 +26,8 @@
LIBPREFIX=lib
OUT = -o $@
RM= -rm -f
-AR= ar crs
# Linux
-LD = gcc
-LDFLAGS = -shared
DEBUG=-g -Wno-char-subscripts -O
SYS_LIBS= -ldl -lm
PLATFORM_FEATURES= -DSUN_DL=1
@@ -77,10 +73,10 @@
$(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
scheme$(EXE_EXT): $(OBJS)
- $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
$(STATICLIBTARGET): $(OBJS)
- $(AR) $@ $(OBJS)
+ $(AR) crs $@ $(OBJS)
$(OBJS): scheme.h scheme-private.h opdefines.h
dynload.$(Osuf): dynload.h
@@ -96,3 +92,6 @@
tags: TAGS
TAGS: $(TAGS_SRCS)
etags $(TAGS_SRCS)
+
+install: scheme
+ cp scheme @TERMUX_PREFIX@/bin/tinyscheme