Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42C4004E.8090505@familiehaase.de>
Date: Thu, 30 Jun 2005 16:23:10 +0200
From: "Gerrit P. Haase" <gerrit@familiehaase.de>
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 <tkarakashian@gmail.com>
CC: cygwin@cygwin.com
Subject: Re: Build/Compile problems with ApachPHP on Cygwin MS-XP
References: <Pine.LNX.4.61.0506241534070.16426@bqva.csgpyho.pbz> 	 <42C0AF23.1080706@familiehaase.de> 	 <Pine.LNX.4.61.0506291000430.6243@bqva.csgpyho.pbz> 	 <42C31884.9080807@familiehaase.de> <ce77ed230506300623110ac671@mail.gmail.com>
In-Reply-To: <ce77ed230506300623110ac671@mail.gmail.com>
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/

