@@ -45,3 +45,4 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include -I/usr/include/tirpc
+AM_LDFLAGS = -Wl,--as-needed
@@ -42,6 +42,7 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include -I/usr/include/tirpc
+AM_LDFLAGS = -Wl,--as-needed
#######################################################################
# The following allows the current practice of having
@@ -41,3 +41,4 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include
+AM_LDFLAGS = -Wl,--as-needed
@@ -40,3 +40,4 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include
+AM_LDFLAGS = -Wl,--as-needed
@@ -42,3 +42,4 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I/usr/include/tirpc
+AM_LDFLAGS = -Wl,--as-needed
@@ -40,3 +40,4 @@ AM_CFLAGS = -ggdb -fstrict-aliasing \
-Wall -Wextra -pedantic -Wformat=2 \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2
AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include -I/usr/include/tirpc
+AM_LDFLAGS = -Wl,--as-needed