wip update
[nyanlinux.git] / builders / libressl-0 / builder.sh
blob4ad2526aff3e09e81fbd9209f9a963561fe1f7db
1 src_name=libressl
2 version=3.3.1
3 archive_name=$src_name-$version.tar.gz
4 url0=https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$archive_name
6 slot=0
8 src_dir=$src_dir_root/$src_name-$version
9 cd $src_dir_root
10 rm -Rf $src_name-$version
11 tar xf $archive_name
13 build_dir=$builds_dir_root/$src_name-$version
14 rm -Rf $build_dir
15 mkdir -p $build_dir
16 cd $build_dir
18 # at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option
19 export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc"
20 export 'CFLAGS=-O2 -pipe -fPIC'
21 $src_dir/configure \
22 --prefix=/nyan/$src_name/$slot \
23 --disable-shared \
24 --enable-nc
25 unset CFLAGS
26 unset CC
28 make -j $threads_n
29 make install
31 # cleanup and tidying
32 rm -Rf /nyan/$src_name/$slot/share
33 rm -f /nyan/$src_name/$slot/lib/*.la
34 strip -s /nyan/$src_name/$slot/bin/* || true
36 rm -Rf $build_dir $src_dir