Do not provide PREFIX value for perl build.

Message ID
State New
Headers show
Series Do not provide PREFIX value for perl build. | expand

Commit Message

Stefan Schantl Feb. 22, 2021, 8:07 p.m. UTC
This caused to gain the following error when building:

Only one of PREFIX or INSTALL_BASE can be given. Not both.

Using INSTALLDIRS=vendor is the common way to get the modules installed
into the right directories.

Fixes #12573.

Signed-off-by: Stefan Schantl <>
--- | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/ b/
index dc594f8..52a4722 100644
--- a/
+++ b/
@@ -228,7 +228,7 @@  build-perl:
 	@test -e $(builddir)/src/perl/t/Location.t || ln -s --relative $(srcdir)/src/perl/t/Location.t $(builddir)/src/perl/t/
 	@test -e $(builddir)/src/perl/typemap || ln -s --relative $(srcdir)/src/perl/typemap $(builddir)/src/perl/
-	cd $(builddir)/src/perl && $(PERL) Makefile.PL PREFIX="$(prefix)" \
+	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=