From ea32cfbd09517413ee246f622b2edbcd52e0d0cf Mon Sep 17 00:00:00 2001 From: Carsten Strotmann Date: Wed, 12 Feb 2020 15:08:46 +0100 Subject: [PATCH] make dynamic linker configurable --- preForth/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/preForth/Makefile b/preForth/Makefile index 395ee7d..569b9fc 100644 --- a/preForth/Makefile +++ b/preForth/Makefile @@ -8,6 +8,12 @@ HOSTFORTH=gforth # HOSTFORTH=sf # SwiftForth >3.7 # ------------------------------------------------------------------------ +# select path for linker +# TODO: auto-detect linker +#LINKER=/lib32/ld-linux.so.2 +# Linker for Debian based Linux +LINKER=/lib/ld-linux.so.2 + .PHONY=all all: preForth seedForth seedForthDemo.seed seedForthInteractive.seed @@ -46,7 +52,7 @@ preForth: preForth.$(UNIXFLAVOUR) %.Linux: %.asm fasm $< $@.o ld -arch i386 -o $@ \ - -dynamic-linker /lib32/ld-linux.so.2 \ + -dynamic-linker $(LINKER) \ /usr/lib/i386-linux-gnu/crt1.o /usr/lib/i386-linux-gnu/crti.o \ $@.o \ -lc /usr/lib/i386-linux-gnu/crtn.o