1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/docker/win32-static/build_libcss.sh

31 lines
1.1 KiB
Bash
Raw Normal View History

2023-11-10 11:49:17 -05:00
cd
wget http://download.netsurf-browser.org/libs/releases/libcss-0.9.1-src.tar.gz; tar -xf libcss-0.9.1-src.tar.gz
rm -rf libcss-0.9.1
tar -xf libcss-0.9.1-src.tar.gz
cd libcss-0.9.1
patch -p1 < ../libCSS-restrict.diff
printf '\ngen: $(PRE_TARGETS)\n' >> Makefile
cd ..
export LIBRARY_PATH="$HOME/lib"
export PKG_CONFIG_PATH="$HOME/lib/pkgconfig"
export C_INCLUDE_PATH="$HOME/include"
export CFLAGS="-O2 -I$HOME/include -Wno-error"
export CXXFLAGS="-O2 -I$HOME/include -Wno-error"
export LDFLAGS="-L$HOME/lib"
export CC="i686-w64-mingw32-gcc"
export AR="i686-w64-mingw32-ar"
export HOST="i686-w64-mingw32"
export BUILD_CC=cc
make -C libcss-0.9.1 -j1 Q= PREFIX=$HOME LIBDIR=lib gen
export LIBRARY_PATH="$HOME/lib"
export PKG_CONFIG_PATH="$HOME/lib/pkgconfig"
export C_INCLUDE_PATH="$HOME/include"
export CFLAGS="-O2 -I$HOME/include -Wno-error"
export CXXFLAGS="-O2 -I$HOME/include -Wno-error"
export LDFLAGS="-L$HOME/lib"
export CC="i686-w64-mingw32-gcc"
export AR="i686-w64-mingw32-ar"
export HOST="i686-w64-mingw32"
make -C libcss-0.9.1 install -j1 Q= PREFIX=$HOME LIBDIR=lib COMPONENT_TYPE=lib-static