Created
April 15, 2018 19:35
-
-
Save Leandros/ed39a5c70bd5a9e7ae4cc2246b4d5cf8 to your computer and use it in GitHub Desktop.
build re2c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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