# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. # See LICENSE.md for license information. # SPDX-License-Identifier: MIT # # Haiku x86 (32-bit) build rules (make haiku32): the Be API port, # make/be.mk, built with gcc 2.95 -- the BeOS C++ ABI, 32-bit Haiku's # primary compiler (x86_gcc2h) -- against the R1/beta6 sysroot (the # installer's haikuGcc2 component), through make/support/be/gcc2.sh, which # gives it the command line the shared rules give a modern gcc. PLATFORM := haiku32 include $(dir $(lastword $(MAKEFILE_LIST)))/common.mk $(call requireTool,$(HAIKU32_ROOT)/cross/bin/i586-pc-haiku-g++,toolchain:haiku32) # -fno-common: gcc 2.95 merges a program's uninitialised global into a # library one of the same name; every other port's compiler refuses the link. HOSTED_CC := $(HAIKU32_GCC2) $(HAIKU32_ROOT) gcc -fno-common HOSTED_CXX := $(HAIKU32_GCC2) $(HAIKU32_ROOT) g++ HOSTED_AR := $(HAIKU32_GCC2) $(HAIKU32_ROOT) ar BE_CXX_RUNTIME := -lstdc++.r4 include $(REPO_DIR)/make/be.mk