Merge pull request #376 from antmicro/build-sim-do-not-override-C-LD-FLAGS
build/sim: allow to use environment's {C,LD}FLAGS
This commit is contained in:
commit
40cddca933
|
@ -1,8 +1,8 @@
|
|||
include variables.mak
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
|
||||
LDFLAGS = -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent
|
||||
CC ?= gcc
|
||||
CFLAGS += -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
|
||||
LDFLAGS += -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent
|
||||
|
||||
CC_SRCS ?= "--cc dut.v"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
CC = gcc
|
||||
CFLAGS = -Wall -O3 -ggdb -fPIC -Werror
|
||||
LDFLAGS = -levent -shared -fPIC
|
||||
CC ?= gcc
|
||||
CFLAGS += -Wall -O3 -ggdb -fPIC -Werror
|
||||
LDFLAGS += -levent -shared -fPIC
|
||||
|
||||
OBJ_DIR ?= .
|
||||
|
|
Loading…
Reference in New Issue