Skip to content

Commit

Permalink
czmq: Add -Wnoerror to CFLAGS
Browse files Browse the repository at this point in the history
This works around the readdir_r being depracated error in glibc 2.24. References #471
  • Loading branch information
Frenzie authored and houqp committed Feb 2, 2017
1 parent e8a24fe commit 47de692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thirdparty/czmq/CMakeLists.txt
Expand Up @@ -16,7 +16,8 @@ assert_var_defined(HOST)
ep_get_source_dir(SOURCE_DIR)
ep_get_binary_dir(BINARY_DIR)

set(CFG_ENV_VAR "CC=\"${CC}\" LDFLAGS=\"${LDFLAGS}\" CFLAGS=\"${CFLAGS}\" czmq_have_xmlto=no czmq_have_asciidoc=no")
#-Wno-error so we can build on glibc 2.24 in spite of readdir_r
set(CFG_ENV_VAR "CC=\"${CC}\" LDFLAGS=\"${LDFLAGS}\" CFLAGS=\"-Wno-error ${CFLAGS}\" czmq_have_xmlto=no czmq_have_asciidoc=no")
set(CFG_OPTS "-q --prefix=${BINARY_DIR} --with-gnu-ld --with-libzmq=${ZMQ_DIR} --disable-static --enable-shared --host=${HOST}")
set(CFG_CMD sh -c "${CFG_ENV_VAR} ${SOURCE_DIR}/configure ${CFG_OPTS}")

Expand Down

0 comments on commit 47de692

Please sign in to comment.