]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/glibc-staticlib-args/Makefile
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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)