summary refs log tree commit diff
path: root/src/test/run-make/bootstrap-from-c-with-native/Makefile
blob: c7753a67464ac64ad0e9b8193c8996632a076f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-include ../tools.mk

HOST_LIB_DIR=$(TMPDIR)/../../../stage$(RUST_BUILD_STAGE)/lib
# This overrides the LD_LIBRARY_PATH for RUN
TARGET_RPATH_DIR:=$(TARGET_RPATH_DIR):$(TMPDIR)

all:
	$(RUSTC) lib.rs
	$(CC) main.c -o $(call RUN_BINFILE,main) $(call RPATH_LINK_SEARCH,$(HOST_LIB_DIR)) -lboot
	$(call RUN,main)
	$(call REMOVE_DYLIBS,boot)
	$(call FAIL,main)