Makefile.am: Specify CC and LD when compiling perl module.

Message ID 20200512150704.396224-1-stefan.schantl@ipfire.org
State Accepted
Commit cf37d1948d932a55b5d1ae09a7d8aedca3b6d80a
Headers
Series Makefile.am: Specify CC and LD when compiling perl module. |

Commit Message

Stefan Schantl May 12, 2020, 3:07 p.m. UTC
  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(-)
  

Patch

diff --git a/Makefile.am b/Makefile.am
index ee1c36f..6c01e76 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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