Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <42C4004E.8090505@familiehaase.de> Date: Thu, 30 Jun 2005 16:23:10 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: Tony Karakashian CC: cygwin AT cygwin DOT com Subject: Re: Build/Compile problems with ApachPHP on Cygwin MS-XP References: <42C0AF23 DOT 1080706 AT familiehaase DOT de> <42C31884 DOT 9080807 AT familiehaase DOT de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Tony Karakashian wrote: >>This is the wrong approach, use the linking flag -no-undefined instead. > > > I've been searching for a couple of days now for how you're supposed > to do that. Set LDFLAGS? Add it to Makefile.am (in case of PHP Makefile.in, yhey don't use automake), there should be the following in every Makefile.in when shared libraries / modules are created (more or less), important are the defines for ..._LTLIBRARIES, ..._la_SOURCES and in our case ..._la_LDFLAGS lib_LTLIBRARIES = libname.la libname_la_SOURCES = $(sources) libname_la_LIBADD = \ $(top_builddir)/liba/liba.la \ $(top_builddir)/libb/libb.la libname_la_DEPENDENCIES = ${version_dep} $(libname_la_LIBADD) libname_la_LDFLAGS = \ -version-info $(libtool_VERSION) here add -no-undefined to ..._la_LDFLAGS. Setting LDFLAGS should work too if there is no Makefile overriding it (which may happen when the programmer don't care about users who want to use user space env settings / variables). Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/