build: Use the .def files when linking on Windows
This commit is contained in:
parent
41be79acf3
commit
9aae248649
@ -140,12 +140,17 @@ ifdef CFG_GCC
|
||||
CFG_GCC_CFLAGS += -Wall -Werror -fno-rtti -fno-exceptions -g
|
||||
CFG_GCC_LINK_FLAGS += -g
|
||||
CFG_COMPILE_C = $(CFG_GCC_CROSS)g++ $(CFG_GCC_CFLAGS) -c -o $(1) $(2)
|
||||
CFG_LINK_C = $(CFG_GCC_CROSS)g++ $(CFG_GCC_LINK_FLAGS) -o $(1) $(2)
|
||||
CFG_DEPEND_C = $(CFG_GCC_CROSS)g++ $(CFG_GCC_CFLAGS) -MT "$(1)" -MM $(2)
|
||||
else
|
||||
CFG_ERR := $(error please try on a system with gcc)
|
||||
endif
|
||||
|
||||
ifdef CFG_WINDOWSY
|
||||
CFG_LINK_C = $(CFG_GCC_CROSS)g++ $(CFG_GCC_LINK_FLAGS) -o $(1) $(3) $(2)
|
||||
else
|
||||
CFG_LINK_C = $(CFG_GCC_CROSS)g++ $(CFG_GCC_LINK_FLAGS) -o $(1) $(2)
|
||||
endif
|
||||
|
||||
ifdef CFG_OCAMLC_OPT
|
||||
$(info cfg: have ocaml native compiler)
|
||||
OPT=.opt
|
||||
|
Loading…
Reference in New Issue
Block a user