From e4f50c8b257b9ec2301632fef07ae7e5b86bb8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 17 Nov 2022 09:55:44 +0100 Subject: [PATCH] perl: pass $(LDFLAGS) to Makefile.PL (#71393) LDFLAGS is set during the Debian build to pass hardening flags and we want them to be applied to the perl module. --- bindings/perl/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/perl/Makefile.am b/bindings/perl/Makefile.am index 5bfb226c..471a943a 100644 --- a/bindings/perl/Makefile.am +++ b/bindings/perl/Makefile.am @@ -38,7 +38,7 @@ Makefile.perl: $(srcdir)/Makefile.PL Lasso.xs Lasso.pm done; \ chmod -R u+rwX $(TOCOPY); \ fi; - $(AM_V_SUBMAKE) $(PERL) Makefile.PL INSTALLDIRS=vendor DESTDIR=$(DESTDIR) PREFIX=$(prefix) CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir) -I$(srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs`" OPTIMIZE="-g" $(AM_V_SUBMAKE_POSTFIX) + $(AM_V_SUBMAKE) $(PERL) Makefile.PL INSTALLDIRS=vendor DESTDIR=$(DESTDIR) PREFIX=$(prefix) CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir) -I$(srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs` $(LDFLAGS)" OPTIMIZE="-g" $(AM_V_SUBMAKE_POSTFIX) Lasso.xs Lasso.pm: lang.py typemap-in typemap-out $(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py -l perl --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)