Skip to content

Commit 59c4100

Browse files
checking version of gcc if path passed via CMD line
1 parent 1e21888 commit 59c4100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.base

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ LOCAL_LDADD = -L$(TOPDIR)/src/lib/$(OBJDIR)
136136
COMP_FLAGS += -g -O2 -I/usr/include -I$(INCDIR) -I$(TOPDIR)/include -I. -Wall -fPIC
137137

138138
# get gcc version (space-separated components)
139-
GCC_VER_SPC=$(shell gcc -dumpversion | tr '.' ' ')
139+
GCC_VER_SPC=$(shell $(CC) -dumpversion | tr '.' ' ')
140140
# turn it into an integer, zero-padding minor and patch versions to 4 digits
141141
GCC_VER_INT=$(shell printf "%d%04d%04d" $(GCC_VER_SPC))
142142
# compare to minimum version 4.8.0
143143
GCC_GTE_48=$(shell expr $(GCC_VER_INT) \>= 400080000)
144-
GCC_GTE_80=$(shell expr $(GCC_VER_INT) \>= 800080000)
144+
GCC_GTE_80=$(shell expr $(GCC_VER_INT) \>= 800000000)
145145

146146
PEDANTIC = -Wall -pedantic -Wno-variadic-macros -Wno-long-long -Wno-overlength-strings
147147

0 commit comments

Comments
 (0)