Settled GCC 4 stuff, I think.

This commit is contained in:
Pietro Gagliardi 2015-11-17 13:44:57 -05:00
parent ff9dcc6d58
commit e295163653
1 changed files with 4 additions and 2 deletions

View File

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