about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMateusz Mikuła <mati865@gmail.com>2020-06-13 14:18:02 +0200
committerMateusz Mikuła <mati865@gmail.com>2020-07-17 18:07:50 +0200
commit48fe5fcbb86f6f5809a82e9cb9116c8ecd264666 (patch)
tree1b8f46120d5931b49d08c7ea32dedfb0149e1efa
parentc2dbebd3d4ad21e80ef4e7535dd1e868aaad7e50 (diff)
downloadrust-48fe5fcbb86f6f5809a82e9cb9116c8ecd264666.tar.gz
rust-48fe5fcbb86f6f5809a82e9cb9116c8ecd264666.zip
Create implib for dlls when testing MinGW targets
-rw-r--r--src/test/run-make-fulldeps/tools.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make-fulldeps/tools.mk b/src/test/run-make-fulldeps/tools.mk
index 04bf78ed210..1effa46e101 100644
--- a/src/test/run-make-fulldeps/tools.mk
+++ b/src/test/run-make-fulldeps/tools.mk
@@ -150,7 +150,7 @@ ifdef IS_MSVC
 	$(CC) $< -link -dll -out:`cygpath -w $@`
 else
 %.dll: lib%.o
-	$(CC) -o $@ $< -shared
+	$(CC) -o $@ $< -shared -Wl,--out-implib=$@.a
 endif
 
 $(TMPDIR)/lib%.o: %.c