summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-11-19 15:57:23 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-07 01:46:35 -0800
commit58cb8c532b0909edb34d17c7fd32b0559b917eb9 (patch)
tree6aa5c6bf58273c1109a9553932fdc08d8e716282 /Makefile
parent7e0728dfca6d4f27c07434c9a6af468c966046a4 (diff)
downloadvboot-58cb8c532b0909edb34d17c7fd32b0559b917eb9.tar.gz
Port to musl: musl doesn't have execinfo.h.
Change-Id: Idc2f18880581d3a2e67185becee8b77cfa5cdf04 Reviewed-on: https://chromium-review.googlesource.com/313388 Commit-Ready: Doug Evans <dje@google.com> Tested-by: Doug Evans <dje@google.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d066916e..944ae739 100644
--- a/Makefile
+++ b/Makefile
@@ -205,6 +205,11 @@ ifdef HAVE_MACOS
CFLAGS += -DHAVE_MACOS -Wno-deprecated-declarations
endif
+# Musl doesn't have execinfo.h.
+ifndef HAVE_MUSL
+ CFLAGS += -DHAVE_EXECINFO_H
+endif
+
# And a few more default utilities
LD = ${CC}
CXX ?= g++