Skip to content

Instantly share code, notes, and snippets.

@Leandros
Created April 15, 2018 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leandros/ed39a5c70bd5a9e7ae4cc2246b4d5cf8 to your computer and use it in GitHub Desktop.
Save Leandros/ed39a5c70bd5a9e7ae4cc2246b4d5cf8 to your computer and use it in GitHub Desktop.
build re2c
#!/bin/bash
export PATH=$PATH:$HOME/x86_64-linux-musl/bin
export CC=x86_64-linux-musl-gcc
export CXX=x86_64-linux-musl-g++
# If needed
export CC="$CC -static --static"
export CXX="$CXX -static --static"
rm -rf re2c
git clone https://github.com/skvadrik/re2c.git re2c
cd re2c
git co 1.0.3
cd re2c
./autogen.sh
./configure \
--prefix="$(realpath output)"
make -j$(nproj)
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment