From 013cc45abef8055b3ee135fc072e402611a4a3f0 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Tue, 11 Jun 2019 11:34:16 -0400 Subject: [PATCH 1/7] Makefile.am: Use LIBADD instead of LDFLAGS to link against krb5 LDFLAGS shouldn't be used to link against libraries as this would break positional flags like --as-needed Use LIBADD instead Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1639032 Signed-off-by: Steve Dickson Signed-off-by: Petr Vorel [Upstream status: 013cc45abef8055b3ee135fc072e402611a4a3f0] --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 932414d..b40a6b4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,7 +38,7 @@ endif if GSS libtirpc_la_SOURCES += auth_gss.c authgss_prot.c svc_auth_gss.c \ rpc_gss_utils.c - libtirpc_la_LDFLAGS += $(GSSAPI_LIBS) + libtirpc_la_LIBADD = $(GSSAPI_LIBS) libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSAPI_CFLAGS) endif -- 2.23.0