Former-commit-id:77cbd6c1e5
[formerlya1d931fd44
] [formerly61f269f54c
] [formerly77cbd6c1e5
[formerlya1d931fd44
] [formerly61f269f54c
] [formerlyf2fac39428
[formerly61f269f54c
[formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]]] Former-commit-id:f2fac39428
Former-commit-id:d9faed979f
[formerly7fb0b17bd5
] [formerly 54140b7733222bbc423315196e9781453b12f896 [formerly72824561cb
]] Former-commit-id: 84e9e52a92ae5e740b0daf680a98316f7435f7f7 [formerly9b5c2094ed
] Former-commit-id:2d928d328e
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 |