Detect gcc version and modify LD to allow x86 and x86_gcc2 to compile.

This commit is contained in:
Jim Saxton 2016-02-04 11:38:18 -08:00
parent ff4a755ca4
commit 1bff209a17

View File

@ -42,7 +42,14 @@ GCC = gcc
GCC_OPT = $(DBG) $(OPT) -I. -I/boot/home/config/include/ -I/boot/home/config/include/ncurses/ -DHAVE_CONFIG -DUNIX $(HAIKUOPT)
GPP = g++
GPP_OPT = $(DBG) $(OPT) -I. -DHAVE_CONFIG -DUNIX $(HAIKUOPT)
LD = ld
GCC_VER_GTE48 := $(shell echo `gcc -dumpversion | cut -f1-2 -d.` \>= 4.8 | bc )
ifeq ($(GCC_VER_GTE48),1)
LD = gcc
else
LD = ld
endif
LD_OPT = -shared
##