2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2019-11-21 13:03:31 -06:00
|
|
|
# only-gnu
|
|
|
|
# only-linux
|
|
|
|
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2019-11-21 13:03:31 -06:00
|
|
|
|
|
|
|
# This ensures that std::env::args works in a library called from C on glibc Linux.
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTC) --crate-type=staticlib library.rs
|
|
|
|
$(CC) program.c $(call STATICLIB,library) $(call OUT_EXE,program) \
|
|
|
|
$(EXTRACFLAGS) $(EXTRACXXFLAGS)
|
|
|
|
$(call RUN,program)
|