vlc | branch: master | Alexandre Janniaux <[email protected]> | Thu Jan  7 
12:30:21 2021 +0100| [6c6f20ff5a62a51c4124a08259186626c5c93620] | committer: 
Alexandre Janniaux

contrib: rust: remove lto

rustc is not able to use -C lto for staticlibs. The correct way would be
to use -Clinker-plugin-lto and compile the C code with -flto=thin.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c6f20ff5a62a51c4124a08259186626c5c93620
---

 contrib/src/main-rust.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/main-rust.mak b/contrib/src/main-rust.mak
index 104656ea3c..af877f3954 100644
--- a/contrib/src/main-rust.mak
+++ b/contrib/src/main-rust.mak
@@ -62,7 +62,7 @@ CARGO_INSTALL = $(CARGO) install $(CARGO_INSTALL_ARGS)
 
 CARGOC_INSTALL = export TARGET_CC=$(CC) && export TARGET_AR=$(AR) && \
        export TARGET_CFLAGS="$(CFLAGS)" && \
-       export RUSTFLAGS="-C lto -C panic=abort -C opt-level=z" && \
+       export RUSTFLAGS="-C panic=abort -C opt-level=z" && \
        $(CARGO) capi install $(CARGO_INSTALL_ARGS)
 
 download_vendor = \

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to