Fixes #2128. Based on @infinity0's commit.
This commit is contained in:
parent
62da869eee
commit
9d001d207e
2 changed files with 22 additions and 22 deletions
|
|
@ -29,8 +29,8 @@ done
|
||||||
|
|
||||||
CC="gcc"
|
CC="gcc"
|
||||||
LINKER="gcc"
|
LINKER="gcc"
|
||||||
COMP_FLAGS="?{c.ccompiler.flags}$extraBuildArgs"
|
COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} ?{c.ccompiler.flags}$extraBuildArgs"
|
||||||
LINK_FLAGS="?{c.linker.flags}"
|
LINK_FLAGS="${LDFLAGS:-} ?{c.linker.flags}"
|
||||||
PS4=""
|
PS4=""
|
||||||
# add(result, "# platform detection\n")
|
# add(result, "# platform detection\n")
|
||||||
ucpu=`uname -m`
|
ucpu=`uname -m`
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LINKER = gcc
|
LINKER = gcc
|
||||||
COMP_FLAGS = ?{c.ccompiler.flags}
|
COMP_FLAGS = $(CPPFLAGS) $(CFLAGS) ?{c.ccompiler.flags}
|
||||||
LINK_FLAGS = ?{c.linker.flags}
|
LINK_FLAGS = $(LDFLAGS) ?{c.linker.flags}
|
||||||
binDir = ?{firstBinPath(c).toUnix}
|
binDir = ?{firstBinPath(c).toUnix}
|
||||||
|
|
||||||
koch := $(shell sh -c 'test -s ../koch.nim && echo "yes"')
|
koch := $(shell sh -c 'test -s ../koch.nim && echo "yes"')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue