Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
%define gccver 4.8.2
Summary: rust for wandbox
Name: wandbox-rust-head
Version: %(eval date +%Y%m%d)
Release: 1
License: Apache
Group: wandbox
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: wandbox-gcc-%{gccver} wandbox-libuv
BuildRequires: libffi-dev
%define _prefix /opt/wandbox/rust-head
%define gccdir /opt/wandbox/gcc-%{gccver}
%define libuvdir /opt/wandbox/libuv/lib64
a component of wandbox service
%setup -q -c -T
git clone --depth 1 .
export CC="%{gccdir}/bin/gcc"
export CXX="%{gccdir}/bin/g++"
export LDFLAGS="-Wl,-rpath,%{gccdir}/lib64"
export RUSTFLAGS="-C linker=%{gccdir}/bin/g++ -C link-args=-Wl,-rpath,%{gccdir}/lib64"
%{_configure} --prefix=%{_prefix} --sysconfdir=%{_prefix}/etc --disable-docs --disable-llvm-assertions --disable-debug --enable-llvm-static-stdcpp --libuv-root=%{libuvdir}
%{__make} RUSTFLAGS="$RUSTFLAGS" %{_smp_mflags} -k
%{__make} RUSTFLAGS="$RUSTFLAGS" %{_smp_mflags} -k
rm -rf %{buildroot}%{_prefix}/share
rm -rf %{buildroot}
* Fri Jun 20 2014 kikairoya <>
- Initial build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.