Makefile.am: Specify CC and LD when compiling perl module.
Commit Message
This fixes the issues when cross compiling libloc and the perl binding.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -205,7 +205,7 @@ build-perl:
cd $(builddir)/src/perl && $(PERL) Makefile.PL PREFIX="$(prefix)" \
INC="-I$(abs_srcdir)/src" LIBS="-L$(abs_builddir)/src/.libs -lloc"
- cd $(builddir)/src/perl && $(MAKE) LD_RUN_PATH=
+ cd $(builddir)/src/perl && $(MAKE) CC="$(CC)" LD="$(LD)" LD_RUN_PATH=
.PHONY: check-perl
check-perl: testdata.db