forked from StephanTLavavej/mingw-distro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpcre.sh
27 lines (20 loc) · 754 Bytes
/
pcre.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
source ./0_append_distro_path.sh
extract_file pcre-8.38.tar
patch -d /c/temp/gcc/pcre-8.38 -p1 < pcre-color.patch
cd /c/temp/gcc
mv pcre-8.38 src
mkdir build dest
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disable-shared --enable-utf --enable-unicode-properties --enable-pcre16 --enable-pcre32 \
"CFLAGS=-s -O3" "CXXFLAGS=-s -O3" || fail_with pcre 1 - EPIC FAIL
make $X_MAKE_JOBS all || fail_with pcre 2 - EPIC FAIL
make install || fail_with pcre 3 - EPIC FAIL
cd /c/temp/gcc
rm -rf build src
mv dest pcre-8.38
cd pcre-8.38
rm -rf bin/pcre-config lib/pkgconfig lib/*.la share
cp include/pcreposix.h include/regex.h
7z -mx0 a ../pcre-8.38.7z *