Skip to content

Commit

Permalink
Fix stackwalker build on OS X (mozilla-services#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
luser authored and Peter Bengtsson committed Sep 7, 2016
1 parent 6f449ac commit 3877c90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion minidump-stackwalk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,23 @@ EXTRA_OBJS := \

VPATH += $(JSON_SRCDIR)

OS := $(shell uname -s)
ifeq ($(OS),Linux)
CURL_CFLAGS := $(shell pkg-config libcurl --cflags)
CURL_LIBS := $(shell pkg-config libcurl --libs)
# Don't -Werror everywhere, some compilers are too picky.
WERROR := -Werror
else
CURL_LIBS := -lcurl
endif

CXXFLAGS += \
-I$(BREAKPAD_SRCDIR) \
-I$(JSON_INCLUDEDIR) \
-D__STDC_FORMAT_MACROS=1 \
-std=gnu++0x \
-Wno-format \
-Werror \
$(WERROR) \
$(CURL_CFLAGS) \
$(NULL)
LIBS := $(CURL_LIBS)
Expand Down

0 comments on commit 3877c90

Please sign in to comment.