[svn:PHP-Sandwich] r1489 - PHP-Sandwich/trunk
[email protected] 29 Aug 2005 16:47:41 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle Date: Mon Aug 29 09:47:40 2005 New Revision: 1489 Modified: PHP-Sandwich/trunk/Makefile.PL Log: resolves https://rt.cpan.org/Ticket/Display.html?id=14317 Thanks [email protected] Modified: PHP-Sandwich/trunk/Makefile.PL ============================================================================== --- PHP-Sandwich/trunk/Makefile.PL (original) +++ PHP-Sandwich/trunk/Makefile.PL Mon Aug 29 09:47:40 2005 @@ -5,7 +5,6 @@ use File::Spec::Functions qw(catfile cat my $phpdir = shift @ARGV || ($^O eq 'MSWin32' ? 'C:\\php' : '/usr/local'); print "using phpdir $phpdir\n"; -my @libs = ('-lphp5'); my $phpconfig = catfile $phpdir, 'bin', 'php-config'; @@ -13,9 +12,12 @@ my @lddlflags = ($Config{lddlflags}); my $php_lddlflags = `$phpconfig --ldflags`; chomp $php_lddlflags; push @lddlflags, $php_lddlflags; -push @lddlflags , "-L" . catdir $phpdir, "lib"; my $inc = "-I" . catdir ($phpdir, 'include') . " ".`$phpconfig --includes`; +push @lddlflags , "-L" . catdir $phpdir, "lib"; +my $php_embedlib_path = "-L" . catdir $phpdir, "lib"; +push @lddlflags , $php_embedlib_path; +my @libs = ("$php_embedlib_path -lphp5"); my @ofiles = ('PHP.o', 'phpinterp.o', 'phpfuncs.o');