1
0

001-makefile.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- a/makefile 2013-04-14 12:08:33.000000000 -0800
  2. +++ b/makefile 2018-05-23 07:18:29.251203367 -0800
  3. @@ -18,8 +18,8 @@
  4. #AR= echo
  5. # Unix, generally
  6. -CC = gcc -fpic -pedantic
  7. -DEBUG=-g -Wall -Wno-char-subscripts -O
  8. +CC = gcc -fPIC -pedantic
  9. +# DEBUG=-g -Wall -Wno-char-subscripts -O
  10. Osuf=o
  11. SOsuf=so
  12. LIBsuf=a
  13. @@ -27,14 +27,15 @@
  14. LIBPREFIX=lib
  15. OUT = -o $@
  16. RM= -rm -f
  17. -AR= ar crs
  18. +AR= ar
  19. +AR_OPTS= crs
  20. # Linux
  21. LD = gcc
  22. LDFLAGS = -shared
  23. -DEBUG=-g -Wno-char-subscripts -O
  24. +DEBUG=-Wall -Wno-char-subscripts -O
  25. SYS_LIBS= -ldl -lm
  26. -PLATFORM_FEATURES= -DSUN_DL=1
  27. +# PLATFORM_FEATURES= -DInitFile=\"/usr/lib/tinyscheme/init.scm\"
  28. # Cygwin
  29. #PLATFORM_FEATURES = -DUSE_STRLWR=0
  30. @@ -74,13 +75,13 @@
  31. $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $<
  32. $(LIBTARGET): $(OBJS)
  33. - $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
  34. + $(CC) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
  35. scheme$(EXE_EXT): $(OBJS)
  36. $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
  37. $(STATICLIBTARGET): $(OBJS)
  38. - $(AR) $@ $(OBJS)
  39. + $(AR) $(AR_OPTS) $@ $(OBJS)
  40. $(OBJS): scheme.h scheme-private.h opdefines.h
  41. dynload.$(Osuf): dynload.h