Change-Id: If25d724c18ff5a9d09f94d77304ec729866158e6 Former-commit-id:6126e4316a
[formerly485334331a
] [formerlyd07281ac51
[formerly 4dc6be0e1bf32b126a0685109131e1b4b3f5acd1]] Former-commit-id:d07281ac51
Former-commit-id:024a23e7a3
27 lines
No EOL
814 B
Text
27 lines
No EOL
814 B
Text
# This script will currently only influence how various cdt
|
|
# project dependencies are built rather than the cdt builds
|
|
# themselves.
|
|
|
|
# leave blank to let the OS determine the architecture or
|
|
# set to one of: {-m32, -m64} to specify the architecture.
|
|
# setting the flag to anything other than -m32 or -m64 will
|
|
# cause unknown, potentially chaotic, build results.
|
|
ARCHFLAGS = -m32
|
|
|
|
# ARCHFLAGS is set into the build environment so that scripts
|
|
# that utilize this script can execute their own architecture
|
|
# specific steps.
|
|
|
|
ifndef ARCHFLAGS
|
|
ARCH ?= $(shell uname -i)
|
|
ifeq ($(ARCH),x86_64)
|
|
export CFLAGS := $(CFLAGS) -m64
|
|
export ARCHFLAGS := -m64
|
|
else
|
|
export CFLAGS := $(CFLAGS) -m32
|
|
export ARCHFLAGS := -m32
|
|
endif
|
|
else
|
|
export CFLAGS := $(CFLAGS) $(ARCHFLAGS)
|
|
export ARCHFLAGS := $(ARCHFLAGS)
|
|
endif |