mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2025-12-13 20:36:45 +01:00
Properly set architecture flags for both compiler and linker
This commit is contained in:
6
Makefile
6
Makefile
@@ -126,9 +126,9 @@ $(call ensure_binary,$(PKG_CONFIG))
|
||||
|
||||
override CFLAGS += -std=c++11 -Wall -Wextra -pedantic -O2 -g
|
||||
|
||||
GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420)
|
||||
ifeq "$(GCC_4_2_OR_HIGHER)" "1"
|
||||
CFLAGS += -march=native
|
||||
ifeq ($(ARCH),i386)
|
||||
override CFLAGS += -m32
|
||||
override LFLAGS += -m32
|
||||
endif
|
||||
|
||||
DEFINES = -DFUSE_USE_VERSION=26
|
||||
|
||||
@@ -28,7 +28,6 @@ services:
|
||||
- *src-volume
|
||||
- linux-gcc-32:/build
|
||||
environment:
|
||||
- CFLAGS=-m32
|
||||
- ARCH=i386
|
||||
|
||||
linux-gcc-64:
|
||||
|
||||
Reference in New Issue
Block a user