Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99669 invoked from network); 30 Apr 2008 17:15:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 17:15:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=cthompson@nexopia.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cthompson@nexopia.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain nexopia.com designates 216.234.161.191 as permitted sender) X-PHP-List-Original-Sender: cthompson@nexopia.com X-Host-Fingerprint: 216.234.161.191 unknown Linux 2.5 (sometimes 2.4) (4) Received: from [216.234.161.191] ([216.234.161.191:50692] helo=mail.nexopia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/68-55591-219A8184 for ; Wed, 30 Apr 2008 13:15:01 -0400 Received: from host-29.dev.office.nexopia.com (office.lan.nexopia.com [68.148.124.243]) (Authenticated sender: cthompson@nexopia.com) by mail.nexopia.com (Postfix) with ESMTP id E887FE66F for ; Wed, 30 Apr 2008 11:14:55 -0600 (MDT) Message-ID: <4818A90F.5040304@nexopia.com> Date: Wed, 30 Apr 2008 11:14:55 -0600 User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: internals@lists.php.net References: <4817ABBB.2020804@nexopia.com> In-Reply-To: <4817ABBB.2020804@nexopia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/6999/Wed Apr 30 10:29:33 2008 on mail.lan.nexopia.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] OS X, enable embed problem, patch From: cthompson@nexopia.com (Christopher Thompson) 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