delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/30/10:23:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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" <gerrit AT familiehaase DOT 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 AT gmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Build/Compile problems with ApachPHP on Cygwin MS-XP
References: <Pine DOT LNX DOT 4 DOT 61 DOT 0506241534070 DOT 16426 AT bqva DOT csgpyho DOT pbz> <42C0AF23 DOT 1080706 AT familiehaase DOT de> <Pine DOT LNX DOT 4 DOT 61 DOT 0506291000430 DOT 6243 AT bqva DOT csgpyho DOT pbz> <42C31884 DOT 9080807 AT familiehaase DOT de> <ce77ed230506300623110ac671 AT mail DOT gmail DOT com>
In-Reply-To: <ce77ed230506300623110ac671@mail.gmail.com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019