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:
enjoy-digital 2020-02-04 18:19:33 +01:00 committed by GitHub
commit 40cddca933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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 ?= .