build: pass --no-undefined to linker

Do not allow undefined symbols.
This commit is contained in:
Lucas De Marchi 2015-01-25 23:29:50 -02:00
parent 27bcc9111b
commit a5f799af98

View File

@ -241,6 +241,7 @@ AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [ \
-Wl,--as-needed \
-Wl,--no-undefined \
-Wl,--gc-sections])
AC_SUBST([OUR_LDFLAGS], $with_ldflags)