# provided with absolutely no warranty. See the COPYING and CREDITS
# files for more information.
-CFLAGS = -g
-LINKFLAGS += -v -rdynamic
+CFLAGS = -g -m32
+LINKFLAGS += -v -rdynamic -m32
NM = ./linux-nm
ASSEM_SRC = ppc-assem.S ldso-stubs.S
OS_SRC = linux-os.c ppc-linux-os.c
OS_LIBS = -ldl
-GC_SRC = $(shell if grep LISP_FEATURE_GENCGC genesis/config.h \
- > /dev/null 2>&1; \
- then echo "gencgc.c"; \
- else echo "cheneygc.c" ; fi)
+ifdef LISP_FEATURE_GENCGC
+ GC_SRC = gencgc.c
+else
+ GC_SRC = cheneygc.c
+endif
+
+ifdef LISP_FEATURE_SB_THREAD
+ OS_LIBS += -lpthread
+endif
+ifdef LISP_FEATURE_SB_CORE_COMPRESSION
+ OS_LIBS += -lz
+endif
# Nothing to do for after-grovel-headers.
.PHONY: after-grovel-headers