]> git.ipfire.org Git - location/libloc.git/commitdiff
Makefile.am: Specify CC and LD when compiling perl module.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 May 2020 15:07:04 +0000 (17:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 May 2020 20:46:41 +0000 (20:46 +0000)
This fixes the issues when cross compiling libloc and the perl binding.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am

index af70a4ea732a5953b9a271eabfd8c9d21c4ae309..5eae5591f32597cc7c8785004fc291280f570d9c 100644 (file)
@@ -219,7 +219,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