nghttp: move HAVE_CONFIG_H compile definition to component

This commit is contained in:
Renz Christian Bagaporo 2019-05-22 11:36:03 +08:00
parent f125a9aaf4
commit 74c6c926ea
2 changed files with 3 additions and 1 deletions

View file

@ -24,3 +24,5 @@ set(COMPONENT_SRCS "nghttp2/lib/nghttp2_buf.c"
"port/http_parser.c")
register_component()
target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DHAVE_CONFIG_H")

View file

@ -91,7 +91,7 @@ function(__build_set_default_build_specifications)
unset(c_compile_options)
unset(cxx_compile_options)
list(APPEND compile_definitions "-DHAVE_CONFIG_H" "-D_GNU_SOURCE")
list(APPEND compile_definitions "-D_GNU_SOURCE")
list(APPEND compile_options "-ffunction-sections"
"-fdata-sections"