diff --git a/Makefile b/Makefile index c7d17455..fd6d8066 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,9 @@ ifeq ($(HAVE_LTCG),1) SHARED += -flto endif +ifneq ($(AS),) + CC_AS := ${AS} +endif CC_AS ?= ${CC_PREFIX}as MFLAGS := @@ -1019,7 +1022,7 @@ else CXXFLAGS += -DTARGET_NO_OPENMP endif ifeq ($(platform), win) - LDFLAGS_END += -Wl,-Bstatic -lgmp -Wl,-Bstatic -lgomp -lwsock32 + LDFLAGS_END += -Wl,-Bstatic -lgomp -lwsock32 endif NEED_CXX11=1 NEED_PTHREAD=1