develooper Front page | perl.php.sandwich.dev | Postings from August 2005

[svn:PHP-Sandwich] r1489 - PHP-Sandwich/trunk

From:
gschlossnagle
Date:
August 29, 2005 09:47
Subject:
[svn:PHP-Sandwich] r1489 - PHP-Sandwich/trunk
Message ID:
20050829164741.14359.qmail@x1.develooper.com
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 vrm@wom.hu



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');
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About