[pacman-dev] [PATCH] autotools: preserve LDFLAGS when building libalpm

anthraxx at archlinux.org anthraxx at archlinux.org
Tue Jan 14 19:08:05 UTC 2020


From: Levente Polyak <anthraxx at archlinux.org>

Use AM_LDFLAGS for libalpm_la so defined LDFLAGS will not be ignored.

Signed-off-by: anthraxx <anthraxx at archlinux.org>
---
 lib/libalpm/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am
index e4f83223..06dc0e43 100644
--- a/lib/libalpm/Makefile.am
+++ b/lib/libalpm/Makefile.am
@@ -59,7 +59,7 @@ libalpm_la_SOURCES = \
 	util-common.h util-common.c \
 	version.c
 
-libalpm_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_INFO)
+libalpm_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info $(LIB_VERSION_INFO)
 
 libalpm_la_CFLAGS = \
 	$(AM_CFLAGS) \
-- 
2.25.0


More information about the pacman-dev mailing list