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.
This commit is contained in:
Frédéric Péters 2022-11-17 09:55:44 +01:00
parent 3a7ad3610f
commit e4f50c8b25
1 changed files with 1 additions and 1 deletions

View File

@ -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)