From c496d9080fa19314a2b910386228f6b10170cc3c Mon Sep 17 00:00:00 2001 From: François Revol Date: Sun, 25 Nov 2012 18:11:56 +0100 Subject: beos: gcc2 fixes We'll probably drop gcc2 support soon though. --- beos/Makefile.target | 7 ++++++- beos/download.cpp | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/beos/Makefile.target b/beos/Makefile.target index ce4703246..0c662cb0b 100644 --- a/beos/Makefile.target +++ b/beos/Makefile.target @@ -61,7 +61,12 @@ # cross: Haiku ? NETLDFLAGS := -lnetwork endif - LDFLAGS += -lbe -ltranslation -ltracker $(NETLDFLAGS) -lstdc++ -lsupc++ + LDFLAGS += -lbe -ltranslation -ltracker $(NETLDFLAGS) + ifeq ($(GCCVER),2) + LDFLAGS += -lstdc++.r4 + else + LDFLAGS += -lstdc++ -lsupc++ + endif ifeq ($(HOST),beos) CFLAGS += -I$(PREFIX)/include diff --git a/beos/download.cpp b/beos/download.cpp index e1a0c8c0f..bdd85b5ac 100644 --- a/beos/download.cpp +++ b/beos/download.cpp @@ -16,6 +16,9 @@ * along with this program. If not, see . */ +#define __STDBOOL_H__ 1 +#include + extern "C" { #include "desktop/gui.h" } -- cgit v1.2.3