1
0
Fork 0

Add Haiku OS support to build system

This commit is contained in:
kcgen 2020-05-08 09:33:34 -07:00 committed by Patryk Obara
parent 5fdb4acb5e
commit a495aefe83
7 changed files with 75 additions and 13 deletions

View file

@ -0,0 +1 @@
ld="ld"

View file

@ -0,0 +1,7 @@
# Tool additions
ldflags+=(-Wl,--as-needed)
# Enable math vectorizions using instructions avaiable in circa-2008+ CPUs
x86_math=(-mfpmath=sse -msse4.2)
cflags_release+=("${x86_math[@]}")
cflags_optinfo+=("${x86_math[@]}")

View file

@ -0,0 +1,10 @@
cflags+=(-fPIC)
function make_binary() {
make \
--jobs="$(nproc)" \
--output-sync=line \
|& tee build.log
}
dependencies=(objdump -afp "${executable}")

View file

@ -0,0 +1 @@
compiler=(llvm${postfix}_clang)

View file

@ -0,0 +1,6 @@
# Package repo: https://depot.haiku-os.org
delim=""
packages+=(ccache coreutils autoconf automake autoconf_archive
pkgconfig libpng ncurses6_devel libsdl2_devel
sdl2_net_devel libogg_devel opus_devel opusfile_devel
gcc_syslibs_devel opus_tools)