]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/glibc-staticlib-args/Makefile
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / run-make-fulldeps / glibc-staticlib-args / Makefile
1 # only-gnu
2 # only-linux
3
4 -include ../tools.mk
5
6 # This ensures that std::env::args works in a library called from C on glibc Linux.
7
8 all:
9         $(RUSTC) --crate-type=staticlib library.rs
10         $(CC) program.c $(call STATICLIB,library) $(call OUT_EXE,program) \
11                 $(EXTRACFLAGS) $(EXTRACXXFLAGS)
12         $(call RUN,program)