diff --git a/haiku/GNUosspecific.mk b/haiku/GNUosspecific.mk index db9fb51e..0c47b0fa 100644 --- a/haiku/GNUosspecific.mk +++ b/haiku/GNUosspecific.mk @@ -4,8 +4,10 @@ EXESUFFIX = LIBSUFFIX = .so OSHSUFFIX = .hpp -# TODO dynamically select the gcc4 compiler instead? gotta figure out how to do this on a GCC 2 Hybrid nightly +# Force GCC 4; GCC 2 is not supported. gccver = $(shell $(CC) --version | sed 's/-.*//g') ifeq ($(gccver),2.95.3) -$(error Sorry; GCC 4 is necessary to build libui for Haiku) + # TODO warn? + CC = gcc-x86 + CXX = g++-x86 endif