beos: gcc2 fixes

We'll probably drop gcc2 support soon though.
This commit is contained in:
François Revol 2012-11-25 18:11:56 +01:00
parent 7e5ac02785
commit c496d9080f
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -16,6 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define __STDBOOL_H__ 1
#include <stdbool.h>
extern "C" {
#include "desktop/gui.h"
}