awips2/nativeLib/build.native/makefile.arch
Bryan Kowal 1134d55c7b Issue #2547 - fix RHEL6 nativeLib build in 14.1.1
Former-commit-id: 8afbe25d22 [formerly b2272ad695] [formerly a51231058a] [formerly 8afbe25d22 [formerly b2272ad695] [formerly a51231058a] [formerly e3639da703 [formerly a51231058a [formerly 7af6c4794f9523e6f0d632b0a9f34e8f5cbcda3f]]]]
Former-commit-id: e3639da703
Former-commit-id: ad1e4c66b8 [formerly b2c63727ba] [formerly 9b2674319137dc98ffe2e221d63d5f3dae8f1e22 [formerly 48d5d8c3a1]]
Former-commit-id: 05930d677355374fbcc6438692928f1740b35460 [formerly a575f41589]
Former-commit-id: cfb3717a61
2013-11-12 19:57:25 -06:00

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