Makefile.am: Do not specify CC and LD when building perl module.

Message ID 20210223201557.28882-1-stefan.schantl@ipfire.org
State Accepted
Headers
Series Makefile.am: Do not specify CC and LD when building perl module. |

Commit Message

Stefan Schantl Feb. 23, 2021, 8:15 p.m. UTC
  Specifing the CC and LD flags is not required because perl MakeMaker
takes care of this.

Fixes #12574.

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 52a4722..8da1f1b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -230,7 +230,7 @@  build-perl:
 
 	cd $(builddir)/src/perl && $(PERL) Makefile.PL INSTALLDIRS=vendor \
 		INC="-I$(abs_srcdir)/src" LIBS="-L$(abs_builddir)/src/.libs -lloc"
-	cd $(builddir)/src/perl && $(MAKE) CC="$(CC)" LD="$(LD)" LD_RUN_PATH=
+	cd $(builddir)/src/perl && $(MAKE) LD_RUN_PATH=""
 
 .PHONY: check-perl
 check-perl: testdata.db