diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 7 |
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 |