We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b58e19d commit 32d99efCopy full SHA for 32d99ef
src/test/run-make-fulldeps/redundant-libs/Makefile
@@ -1,5 +1,9 @@
1
-include ../tools.mk
2
3
+ifdef IS_WINDOWS
4
+all:
5
+else
6
+
7
# rustc will remove one of the two redundant references to foo below. Depending
8
# on which one gets removed, we'll get a linker error on SOME platforms (like
9
# Linux). On these platforms, when a library is referenced, the linker will
@@ -10,7 +14,6 @@
10
14
# So in this example, we need to ensure that rustc keeps the _later_ reference
11
15
# to foo, and not the former one.
12
16
RUSTC_FLAGS = \
13
- -C prefer-dynamic \
17
-l static=bar \
18
-l foo \
19
-l static=baz \
@@ -20,3 +23,5 @@ RUSTC_FLAGS = \
20
23
all: $(call DYLIB,foo) $(call STATICLIB,bar) $(call STATICLIB,baz)
21
24
$(RUSTC) $(RUSTC_FLAGS) main.rs
22
25
$(call RUN,main)
26
27
+endif
0 commit comments