Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37375 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5223 invoked from network); 30 Apr 2008 17:30:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 17:30:01 -0000 Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.146.178 wa-out-1112.google.com Received: from [209.85.146.178] ([209.85.146.178:42061] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/79-55591-79CA8184 for ; Wed, 30 Apr 2008 13:29:59 -0400 Received: by wa-out-1112.google.com with SMTP id v27so721298wah.17 for ; Wed, 30 Apr 2008 10:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=vWHK8Vz7dZ4a4azV96DP0En4pvaz2DyrOz0cZr257Gk=; b=kZ/pWQEOUl+2LW68WZ5+1HlU5I5nDY3zpImCLCIPGACd+MfxaMjclbh7fGxSYpcVogbUr88QY9/6j2SxgVK46KuCMl4KqME4FqcBvIgTzYYY63mX+c96xhGf72s8TfSBy3Nmago5POGG8UX6bwtJCJYdJWEKDfaRzSo8hUeX17k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eMVFJ9Nz51+LdVIdEwcQQbhk46k9UifSRTRdrbR1QwjRWNmCN5Y1Z+HC+eftLWfsejkTpPGlNOmdQ35WzOVq6XXlJFWGLln7TYVMEfJzwci7VzTfhFSiKg4YiozaFnDunkCH/khcDRbdNqIt/8zgFt3P0JtCCBcMpdUA1ew6bqw= Received: by 10.114.154.1 with SMTP id b1mr1093279wae.34.1209576596314; Wed, 30 Apr 2008 10:29:56 -0700 (PDT) Received: by 10.114.255.17 with HTTP; Wed, 30 Apr 2008 10:29:56 -0700 (PDT) Message-ID: Date: Wed, 30 Apr 2008 18:29:56 +0100 To: "Christopher Thompson" Cc: internals@lists.php.net In-Reply-To: <4818A90F.5040304@nexopia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4817ABBB.2020804@nexopia.com> <4818A90F.5040304@nexopia.com> Subject: Re: [PHP-DEV] OS X, enable embed problem, patch From: paul.biggar@gmail.com ("Paul Biggar") Hi Chris, I'm very interested in having --enable-embed working on OS X. My experience with libtool is that it abstracts this sort of thing, so I'm a little bit confused by your work-around. Could you explain why you added --enable-embed=dylib instead of fixing --enable-embed=shared? Thanks, Paul On Wed, Apr 30, 2008 at 6:14 PM, Christopher Thompson wrote: > Although there's obviously some debate as to the usefulness of my embed > patch for OS X, here's a replacement for the Makefile.global bit. It adds > $(PHP_LDFLAGS) to the compile line for libphp5.dylib, necessary in many > cases. > > > --- php-5.2.5.clean/Makefile.global 2007-08-03 08:01:56.000000000 -0600 > +++ php-5.2.5/Makefile.global 2008-04-29 17:00:20.000000000 -0600 > > @@ -17,6 +17,10 @@ > $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath > $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) > $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ > -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ > >/dev/null 2>&1 > > +libphp$(PHP_MAJOR_VERSION).dylib: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) > + $(LIBTOOL) --mode=link $(CC) -dynamiclib -install_name > $(INSTALL_ROOT)$(prefix)/lib/$@ -current_version $(PHP_VERSION) > -compatibility_version $(PHP_MAJOR_VERSION) -undefined dynamic_lookup > $(PHP_RPATHS) $(PHP_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) > $(PHP_SAPI_OBJS:.lo=.o) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ > > + -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ > >/dev/null 2>&1 > + > libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) > $(PHP_SAPI_OBJS) > $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) > $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) > $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ > libs/libphp$(PHP_MAJOR_VERSION).so > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Paul Biggar paul.biggar@gmail.com