build: pass --no-undefined to linker
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 26 Jan 2015 01:29:50 +0000 (23:29 -0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 26 Jan 2015 01:29:50 +0000 (23:29 -0200)
Do not allow undefined symbols.

configure.ac

index e7bab61..5948cf3 100644 (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)