fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1# ignore-cross-compile 2# Regression test for issue #68794 3# 4# Verify that no text relocations are accidentally introduced by linking a 5# minimal rust staticlib. 6# 7# The test links a rust static library into a shared library, and checks that 8# the linker doesn't have to flag the resulting file as containing TEXTRELs. 9 10include ../tools.mk 11 12# only-linux 13 14all: 15 $(RUSTC) foo.rs 16 $(CC) bar.c $(call STATICLIB,foo) -fPIC -shared -o $(call DYLIB,bar) \ 17 $(EXTRACFLAGS) $(EXTRACXXFLAGS) 18 readelf -d $(call DYLIB,bar) | grep TEXTREL; test $$? -eq 1