Fix yosys linking for mxe
authorMiodrag Milanovic <mmicko@gmail.com>
Wed, 31 Jul 2019 15:31:07 +0000 (17:31 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 2 Aug 2019 14:55:14 +0000 (16:55 +0200)
Makefile

index d3b5b8fa6d1342e1efa30b5c8141c2924d720eae..579fff00733b085c052becaf2010cc590e43a8c5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -394,7 +394,7 @@ endif
 
 ifeq ($(CONFIG),mxe)
 CXXFLAGS += -DYOSYS_ENABLE_TCL
-LDLIBS += -ltcl86 -lwsock32 -lws2_32 -lnetapi32 -lz
+LDLIBS += -ltcl86 -lwsock32 -lws2_32 -lnetapi32 -lz -luserenv
 else
 CXXFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --silence-errors --cflags tcl || echo -I$(TCL_INCLUDE)) -DYOSYS_ENABLE_TCL
 ifeq ($(OS), FreeBSD)