We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd04f3 commit 39eafe1Copy full SHA for 39eafe1
configure.ac
@@ -66,6 +66,12 @@ AC_ARG_WITH(static-deps,
66
[skip building a shared library and link test binaries statically]))
67
AM_CONDITIONAL(WITH_STATIC_DEPS, test "x$with_static_deps" = "xyes")
68
69
+# Add flags for dead code elimination
70
+AX_CHECK_COMPILE_FLAG([-fdata-sections],
71
+ [AM_CFLAGS="$AM_CFLAGS -fdata-sections"])
72
+AX_CHECK_COMPILE_FLAG([-ffunction-sections],
73
+ [AM_CFLAGS="$AM_CFLAGS -ffunction-sections"])
74
+
75
# Whether to enable code coverage.
76
AX_CODE_COVERAGE
77
0 commit comments