[vlc-commits] [Git][videolan/vlc][master] contrib: main-rust: correctly quote environment variables

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Jan 18 07:32:22 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f41237a6 by Alexandre Janniaux at 2023-01-18T06:34:30+00:00
contrib: main-rust: correctly quote environment variables

Otherwise, a CC value of "ccache gcc", for instance, will result in
running gcc.

- - - - -


1 changed file:

- contrib/src/main-rust.mak


Changes:

=====================================
contrib/src/main-rust.mak
=====================================
@@ -64,7 +64,7 @@ CARGO_INSTALL_ARGS += \
 
 CARGO_INSTALL = $(CARGO) install $(CARGO_INSTALL_ARGS)
 
-CARGOC_INSTALL = export TARGET_CC=$(CC) && export TARGET_AR=$(AR) && \
+CARGOC_INSTALL = export TARGET_CC="$(CC)" && export TARGET_AR="$(AR)" && \
 	export TARGET_CFLAGS="$(CFLAGS)" && \
 	export RUSTFLAGS="-C panic=abort -C opt-level=z" && \
 	$(CARGO) capi install $(CARGO_INSTALL_ARGS)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f41237a6bcd9bb9f6dd89d7098540e8f92dee683

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f41237a6bcd9bb9f6dd89d7098540e8f92dee683
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list