Fixes #2128. Based on @infinity0's commit.

This commit is contained in:
Dominik Picheta 2016-06-05 14:30:47 +01:00
commit 9d001d207e
2 changed files with 22 additions and 22 deletions

View file

@ -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`

View file

@ -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"')