summaryrefslogtreecommitdiff
path: root/package/uboot-ar71xx/patches/021-darwin_compat.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-10-16 13:44:25 +0000
committerJohn Crispin <john@openwrt.org>2012-10-16 13:44:25 +0000
commite75106aa0d82a64122954b5990b50ec80d8e4040 (patch)
treebcc8ab60e849b3a0debb601b13c7f5356d9683e8 /package/uboot-ar71xx/patches/021-darwin_compat.patch
parent254d851d8a9434e9c8a12a6ec96538ba13101600 (diff)
downloadmtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.zip
mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.gz
mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.bz2
move boot related packages to their own folder
SVN-Revision: 33781
Diffstat (limited to 'package/uboot-ar71xx/patches/021-darwin_compat.patch')
-rw-r--r--package/uboot-ar71xx/patches/021-darwin_compat.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/package/uboot-ar71xx/patches/021-darwin_compat.patch b/package/uboot-ar71xx/patches/021-darwin_compat.patch
deleted file mode 100644
index dde83d4..0000000
--- a/package/uboot-ar71xx/patches/021-darwin_compat.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- a/config.mk
-+++ b/config.mk
-@@ -64,9 +64,17 @@ HOSTSTRIP = strip
- #
-
- ifeq ($(HOSTOS),darwin)
--HOSTCC = cc
--HOSTCFLAGS += -traditional-cpp
--HOSTLDFLAGS += -multiply_defined suppress
-+#get the major and minor product version (e.g. '10' and '6' for Snow Leopard)
-+DARWIN_MAJOR_VERSION = $(shell sw_vers -productVersion | cut -f 1 -d '.')
-+DARWIN_MINOR_VERSION = $(shell sw_vers -productVersion | cut -f 2 -d '.')
-+
-+before-snow-leopard = $(shell if [ $(DARWIN_MAJOR_VERSION) -le 10 -a \
-+ $(DARWIN_MINOR_VERSION) -le 5 ] ; then echo "$(1)"; else echo "$(2)"; fi ;)
-+
-+# Snow Leopards build environment has no longer restrictions as described above
-+HOSTCC = $(call before-snow-leopard, "cc", "gcc")
-+HOSTCFLAGS += $(call before-snow-leopard, "-traditional-cpp")
-+HOSTLDFLAGS += $(call before-snow-leopard, "-multiply_defined suppress")
- else
- HOSTCC = gcc
- endif