Properly set architecture flags for both compiler and linker

This commit is contained in:
Tor Arne Vestbø
2018-09-16 15:16:19 +02:00
parent 3e7b6acbf6
commit 14dba80c03
2 changed files with 3 additions and 4 deletions

View File

@@ -126,9 +126,9 @@ $(call ensure_binary,$(PKG_CONFIG))
override CFLAGS += -std=c++11 -Wall -Wextra -pedantic -O2 -g override CFLAGS += -std=c++11 -Wall -Wextra -pedantic -O2 -g
GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420) ifeq ($(ARCH),i386)
ifeq "$(GCC_4_2_OR_HIGHER)" "1" override CFLAGS += -m32
CFLAGS += -march=native override LFLAGS += -m32
endif endif
DEFINES = -DFUSE_USE_VERSION=26 DEFINES = -DFUSE_USE_VERSION=26

View File

@@ -28,7 +28,6 @@ services:
- *src-volume - *src-volume
- linux-gcc-32:/build - linux-gcc-32:/build
environment: environment:
- CFLAGS=-m32
- ARCH=i386 - ARCH=i386
linux-gcc-64: linux-gcc-64: