Remove check for gcc version from Makefile.
authorJoona Kiiski <joona.kiiski@gmail.com>
Thu, 12 Mar 2015 22:05:18 +0000 (22:05 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Fri, 13 Mar 2015 20:29:28 +0000 (20:29 +0000)
This check is obsolete.
very old gcc versions can't compile c++11 code.

No functional change

Resolves #285

src/Makefile

index 16eb9c5535404e7e8217ea02d95853e1d1c682cd..9d18344f44a4a78f08f1a0368128c26c9f83d347 100644 (file)
@@ -308,12 +308,8 @@ endif
 ifeq ($(comp),gcc)
        ifeq ($(optimize),yes)
        ifeq ($(debug),no)
-               GCC_MAJOR := `$(CXX) -dumpversion | cut -f1 -d.`
-               GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
-               ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
-                       CXXFLAGS += -flto
-                       LDFLAGS += $(CXXFLAGS)
-               endif
+               CXXFLAGS += -flto
+               LDFLAGS += $(CXXFLAGS)
        endif
        endif
 endif