2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2014-04-11 14:20:33 -05:00
|
|
|
|
|
|
|
# The rust crate foo will link to the native library foo, while the rust crate
|
|
|
|
# bar will link to the native library bar. There is also a dependency between
|
|
|
|
# the native library bar to the natibe library foo.
|
|
|
|
#
|
|
|
|
# This test ensures that the ordering of -lfoo and -lbar on the command line is
|
|
|
|
# correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo'
|
|
|
|
# library will be stripped out, and the linkage will fail.
|
|
|
|
|
2015-08-26 18:57:56 -05:00
|
|
|
all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
|
2014-04-11 14:20:33 -05:00
|
|
|
$(RUSTC) foo.rs
|
|
|
|
$(RUSTC) bar.rs
|
2021-12-06 16:09:24 -06:00
|
|
|
$(RUSTC) main.rs --print link-args
|