Add Haiku OS support to build system
This commit is contained in:
parent
5fdb4acb5e
commit
a495aefe83
7 changed files with 75 additions and 13 deletions
1
scripts/automator/build/clang-haiku_x86_64
Normal file
1
scripts/automator/build/clang-haiku_x86_64
Normal file
|
@ -0,0 +1 @@
|
|||
ld="ld"
|
7
scripts/automator/build/gcc-haiku_x86_64
Normal file
7
scripts/automator/build/gcc-haiku_x86_64
Normal 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[@]}")
|
10
scripts/automator/build/os-haiku
Normal file
10
scripts/automator/build/os-haiku
Normal file
|
@ -0,0 +1,10 @@
|
|||
cflags+=(-fPIC)
|
||||
|
||||
function make_binary() {
|
||||
make \
|
||||
--jobs="$(nproc)" \
|
||||
--output-sync=line \
|
||||
|& tee build.log
|
||||
}
|
||||
|
||||
dependencies=(objdump -afp "${executable}")
|
1
scripts/automator/packages/clang-haikuports
Normal file
1
scripts/automator/packages/clang-haikuports
Normal file
|
@ -0,0 +1 @@
|
|||
compiler=(llvm${postfix}_clang)
|
6
scripts/automator/packages/manager-haikuports
Normal file
6
scripts/automator/packages/manager-haikuports
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue