flac: fix gcc2 build

This commit is contained in:
Jerome Duval
2023-06-23 20:44:01 +02:00
parent 7ec744cad5
commit 0b0ce680c0

View File

@@ -64,8 +64,7 @@ BUILD()
{
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
mkdir -p builddir
cp /packages/gcc-2.95.3_2017_07_20-2/.self/develop/tools/lib/gcc-lib/i586-pc-haiku/\
2.95.3-haiku-2017_07_20/../../../../include/g++/iostream.h builddir/
cp /boot/system/develop/headers/c++/2.95.3/iostream.h builddir/
sed -i 's/_G_HAVE_BOOL/0/g' builddir/iostream.h
export CPPFLAGS="-include iostream.h"
additionalArgs="-DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF"