niminst: get rid of LINKER / LD (#11379)

* niminst: get rid of LINKER / LD

They don't seem to be used anywhere, and clashes with *nix `$LD`
This commit is contained in:
alaviss 2019-06-03 13:45:52 +07:00 • committed by Andreas Rumpf
commit 1d1c72dfbb
2 changed files with 3 additions and 9 deletions

View file

@ -5,7 +5,6 @@
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"
CC ??= gcc
LD ??= gcc
CFLAGS += -Ic_code ?{c.ccompiler.flags}
LDFLAGS += ?{c.linker.flags}
binDir = ?{firstBinPath(c).toUnix}
@ -35,7 +34,6 @@ endif
ifeq ($(uos),freebsd)
myos= freebsd
CC = clang
LD = clang
LDFLAGS += -lm
endif
ifeq ($(uos),openbsd)
@ -49,7 +47,6 @@ endif
ifeq ($(uos),darwin)
myos = macosx
CC = clang
LD = clang
LDFLAGS += -ldl -lm
ifeq ($(HOSTTYPE),x86_64)
ucpu = amd64
@ -181,7 +178,7 @@ endif
$(target): $(oFiles)
@mkdir -p $(binDir)
$(LD) -o $@ $^ $(LDFLAGS)
$(CC) -o $@ $^ $(LDFLAGS)
@echo "SUCCESS"
.PHONY: clean