diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2005-01-02 22:53:14 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2005-01-02 22:53:14 +0000 |
commit | 7910d90d472de46ec348685e60045758205fc5db (patch) | |
tree | d4c7e2e23777ff2f19643d1cb496580d55c22248 /perl | |
parent | dc827ee8a98038716df142cd0cc2876e147b0e12 (diff) | |
download | lasso-7910d90d472de46ec348685e60045758205fc5db.tar.gz lasso-7910d90d472de46ec348685e60045758205fc5db.tar.xz lasso-7910d90d472de46ec348685e60045758205fc5db.zip |
use choosen CC and CFLAGS when compiling the perl module
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Makefile.PL | 2 | ||||
-rw-r--r-- | perl/Makefile.am | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL index 2d5a21f8..4c93b007 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -2,6 +2,7 @@ use ExtUtils::MakeMaker; +$CC=$ENV{CC} || "cc"; $CFLAGS=$ENV{CFLAGS} || ""; my $objects="lasso_wrap.o "; @@ -37,4 +38,5 @@ WriteMakefile( AUTHOR => 'Frederic Peters <fpeters@entrouvert.com>', MAKEFILE => 'Makefile.perl', DEFINE => "-DHAVE_CONFIG_H $CFLAGS", + CC => $CC, ); diff --git a/perl/Makefile.am b/perl/Makefile.am index ae725870..87bb5652 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -18,7 +18,7 @@ lasso_wrap.c lasso.pm: $(top_srcdir)/swig/Lasso.i $(top_srcdir)/swig/Lasso-wsf.i $(SWIG) -v -perl5 -module lasso -o lasso_wrap.c $(top_srcdir)/swig/Lasso.i $(PERL_MAKEFILE): $(srcdir)/Makefile.PL lasso.pm - VERSION=$(VERSION) CFLAGS="$(AM_CPPFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL $(MAKE_PL_OPTS) + VERSION=$(VERSION) CC=$(CC) CFLAGS="$(AM_CPPFLAGS) $(AM_CFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL $(MAKE_PL_OPTS) -perl install-perl: $(PERL_MAKEFILE) @target=`echo $@ | sed -e 's/-perl//'`; \ |