aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-16 00:05:57 +0300
committerLoïc Hoguin <[email protected]>2015-05-16 00:05:57 +0300
commit680eb687d0c27e5175770469718f3f3b13a6369b (patch)
tree013c47a9dc2386cf5ea47b218e65d905278b16f9 /core/deps.mk
parent0df93fe6544cfddc5f606c96873ea2863805b4c1 (diff)
downloaderlang.mk-680eb687d0c27e5175770469718f3f3b13a6369b.tar.gz
erlang.mk-680eb687d0c27e5175770469718f3f3b13a6369b.tar.bz2
erlang.mk-680eb687d0c27e5175770469718f3f3b13a6369b.zip
Don't be strict for CFLAGS of autopatched deps
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 8093233..e2c2dbc 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -237,6 +237,13 @@ define dep_autopatch_rebar.erl
end
end(),
Write("\ninclude ../../erlang.mk"),
+ fun() ->
+ case filelib:is_dir("$(DEPS_DIR)/$(1)/c_src") of
+ false -> ok;
+ true ->
+ Write("\n\nCFLAGS := $$$$\(filter-out -std=c99 -Wmissing-prototypes,$$$$\(CFLAGS\)\)\n")
+ end
+ end(),
halt()
endef