diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-02 18:27:12 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-05 17:53:44 -0700 |
| commit | 38f7a1b41b0ff9c1bcaec9a892c8ffb64ad6139f (patch) | |
| tree | ddb952d1e048b97812493a3c8484e10f4353f8f4 /src/test | |
| parent | 0459ee77d0c764cc27950465cb19053e1456cc95 (diff) | |
| download | rust-38f7a1b41b0ff9c1bcaec9a892c8ffb64ad6139f.tar.gz rust-38f7a1b41b0ff9c1bcaec9a892c8ffb64ad6139f.zip | |
rustc: Pass --enable-long-section-names to gcc
This was quite a curious bug on windows, and the details can be found in the comment I added to src/librustc/back/link.rs
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-make/lto-smoke-c/Makefile | 3 | ||||
| -rw-r--r-- | src/test/run-make/lto-smoke-c/foo.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/test/run-make/lto-smoke-c/Makefile b/src/test/run-make/lto-smoke-c/Makefile index 6a703927736..8658950f174 100644 --- a/src/test/run-make/lto-smoke-c/Makefile +++ b/src/test/run-make/lto-smoke-c/Makefile @@ -4,6 +4,9 @@ ifneq ($(shell uname),Darwin) EXTRAFLAGS := -lm -lrt -ldl -lpthread endif +# Apparently older versions of GCC segfault if -g is passed... +CC := $(CC:-g=) + all: $(RUSTC) foo.rs -Z lto ln -s $(call STATICLIB,foo-*) $(call STATICLIB,foo) diff --git a/src/test/run-make/lto-smoke-c/foo.rs b/src/test/run-make/lto-smoke-c/foo.rs index 4cb7a749385..1bb19016700 100644 --- a/src/test/run-make/lto-smoke-c/foo.rs +++ b/src/test/run-make/lto-smoke-c/foo.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[crate_type = "staticlib"]; +#![crate_type = "staticlib"] #[no_mangle] pub extern "C" fn foo() {} |
