openssl: bump to 3.0.3
[kiss-trunc88.git] / syslinux / build
blob526a646fe00d81f5491475eacd5608bc0f7c6b0b
1 #!/bin/sh -e
3 git submodule update --init
5 unset CFLAGS
6 unset CXXFLAGS
7 #export LDFLAGS="$LDFLAGS --no-dynamic-linker"
8 #export EXTRA_CFLAGS="-fno-PIE"
10 patch -p1 < 0018-prevent-pow-optimization.patch
11 patch -p1 < fcommon.patch
12 #patch -p1 < fcommon-nocom32.patch
13 #patch -p1 < singleloadsegment.patch
14 patch -p1 < 0016-strip-gnu-property.patch
15 patch -p1 < strlen.patch
17 # Fix missing <sys/sysmacros.h> include.
18 sed -i 's@vfs.h>@vfs.h>\n#include <sys/sysmacros.h>@' extlinux/main.c
20 # Disable debugging and development "stuff".
21 : > mk/devel.mk
23 make -j1 \
24 PYTHON=python \
25 bios
27 make -j1 \
28 INSTALLROOT="$1" \
29 MANDIR=/usr/share/man \
30 SBINDIR=/usr/bin \
31 AUXDIR=/usr/lib/syslinux \
32 bios install