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:
parent
5c5df61071
commit
1d1c72dfbb
2 changed files with 3 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue