Commit 4f813d27 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

contrib: use $(shell to check xcode version

(cherry picked from commit 85a3a705)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f3cb60bb
......@@ -127,7 +127,7 @@ EXTRA_LDFLAGS += -m32
endif
XCODE_FLAGS = -sdk macosx$(OSX_VERSION)
ifeq ($(xcodebuild -version 2>/dev/null | tee /dev/null|head -1|cut -d\ -f2|cut -d. -f1), 3)
ifeq ($(shell xcodebuild -version 2>/dev/null | tee /dev/null|head -1|cut -d\ -f2|cut -d. -f1),3)
# XCode 3 doesn't support -arch
else
XCODE_FLAGS += -arch $(ARCH)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment