]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
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 e7bab61beb2267a8e36152e08447824c948e1ced..5948cf34041594407640ad7711fbfec50e1f8976 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)