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
|
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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user