aboutsummaryrefslogtreecommitdiff
path: root/repos/archive/syslinux/abuild
blob: bd5346320ad286e0903a52ea826027fad93a73d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name=syslinux
version=6.03
release=2
source="http://www.kernel.org/pub/linux/utils/boot/$name/$name-$version.tar.xz
        $name-Makefile.patch
	$name-sysmacros.patch
	$name-fix-missing-stdio.patch"
skip_patch=1
unset CFLAGS
unset CXXFLAGS

build() {
	patch -p0 -i $SRC/$name-Makefile.patch
	patch -p1 -i $SRC/$name-sysmacros.patch
	patch -p1 -i $SRC/$name-fix-missing-stdio.patch
	
	export LDFLAGS="$LDFLAGS --no-dynamic-linker"
	
	make OPTFLAGS="$CFLAGS -fcommon" installer
	make -j1 OPTFLAGS="$CFLAGS -fcommon" INSTALLROOT=$PKG MANDIR=/usr/share/man install
}