diff options
-rw-r--r-- | perl/Makefile.PL.in | 3 | ||||
-rw-r--r-- | perl/Makefile.am | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index 423b4a18..40d1d6c4 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -24,5 +24,6 @@ WriteMakefile ( VERSION => '@PACKAGE_VERSION@', LIBS => '-L@abs_top_builddir@/src/.libs -lguestfs', - INC => '-Wall @CFLAGS@ -I@abs_top_builddir@/src', + INC => '-I@abs_top_builddir@/src', + CCFLAGS => '@CFLAGS@', ); diff --git a/perl/Makefile.am b/perl/Makefile.am index 44ac42c0..747ac436 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -41,10 +41,12 @@ TESTS_ENVIRONMENT = \ INSTALLDIRS = site -all: - perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) +all: Makefile-pl $(MAKE) -f Makefile-pl +Makefile-pl: Makefile.PL + perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix) + install-data-hook: $(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install |