diff options
author | Thomas Zander <thomas.e.zander@googlemail.com> | 2015-10-29 14:18:56 +0100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-10-30 20:21:26 +1100 |
commit | c9128ad6a15be274210d65fe387ebcc0e96a5075 (patch) | |
tree | 52628d41d878839f9814d7171660c3e268732107 /build/config.mk | |
parent | 20d721e66b63b50f72b96fb1164c1933c907ffaf (diff) | |
download | flac-c9128ad6a15be274210d65fe387ebcc0e96a5075.tar.gz |
Make.lite: Proper detection Darwin/x86_64
- Use uname -m for Darwin/i386 platform
(uname -p returns i386 on Mac OS)
- Darwin does have sys/param.h; allow correct flac_min/flac_max macro
expansion
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'build/config.mk')
-rw-r--r-- | build/config.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/config.mk b/build/config.mk index 0476ddc5..ad1a9e06 100644 --- a/build/config.mk +++ b/build/config.mk @@ -63,6 +63,12 @@ endif ifeq ($(PROC),powerpc) PROC := ppc endif +# x64_64 Mac OS outputs 'i386' in uname -p; use uname -m instead +ifeq ($(PROC),i386) + ifeq ($(OS),Darwin) + PROC := $(shell uname -m) + endif +endif ifeq ($(OS),Linux) PROC := $(shell uname -m) @@ -93,7 +99,7 @@ VERSION=\"1.3.1\" CONFIG_CFLAGS=$(CUSTOM_CFLAGS) -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_CXX_VARARRAYS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ifeq ($(OS),Darwin) - CONFIG_CFLAGS += -DFLAC__SYS_DARWIN -arch $(PROC) + CONFIG_CFLAGS += -DFLAC__SYS_DARWIN -DHAVE_SYS_PARAM_H -arch $(PROC) else CONFIG_CFLAGS += -DHAVE_SOCKLEN_T endif |