mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-03-03 18:28:07 +01:00
Try to detect if we have GCC 4.2 or higher for enabling -march=native
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,7 +1,13 @@
|
||||
TARGET = sparsebundlefs
|
||||
|
||||
PKG_CONFIG = pkg-config
|
||||
CFLAGS = -Wall -O2 -march=native
|
||||
CFLAGS = -Wall -O2
|
||||
|
||||
GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420)
|
||||
ifeq "$(GCC_4_2_OR_HIGHER)" "1"
|
||||
CFLAGS += -march=native
|
||||
endif
|
||||
|
||||
DEFINES = -DFUSE_USE_VERSION=26
|
||||
|
||||
ifeq ($(shell uname), Darwin)
|
||||
|
||||
Reference in New Issue
Block a user