RE: make question (MacOS X)

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Have nNot the faintest idea of how to solve the problems you described,
but just one comment - shouldn't we use libtool also on Linux and any OS
that have it (I think Solaris doesn't have a proper libtool) ?

--
Oded Arbel
m-Wise Inc.
[email protected]
(972)-67-340014
(972)-9-9581711 (ext: 116)

::..
Next Friday will not be your lucky day.  As a matter of fact, you don't
have a lucky day this year.


> -----Original Message-----
> From: Andreas Fink [mailto:[email protected]]
> Sent: Wednesday, May 22, 2002 11:07 AM
> To: [email protected]
> Subject: make question (MacOS X)
> 
> 
> Here's a question for the make gurus among us.
> 
> I want to have Kannel compile by default on MacOS X. The needed 
> changes are minimal but on the other hand a bit tricky to automate.
> 
> Here's what I do:
> 
> 1st:
> 
> 	replace
> 		 ar rc  $libname  $files
> 	with
> 		libtool -static -o $libname $files
> 
> 
> The more trickier thing are the following lines:
> 
> wmlscriptsrcs = $(wildcard wmlscript/*.[cy])
> wmlscriptobjs = $(wmlscriptsrcs:.c=.o) $(wmlscriptsrcs:.y=.o)
> 
> The problem here is that libtool then tries to add non existing files 
> or files with no binary content to the library and fails. As we dont 
> need those files in the archive I've tried to use:
> 
> wmlscriptsrcs = $(wildcard wmlscript/*.[cy])
> wmlscriptobjs = $(wildcard wmlscript/*.o)
> 
> instead. This fails with
> 
> libtool: file: wmlscript/wmlsc.o defines symbol: _main
> libtool: file: wmlscript/wmlsdasm.o defines symbol: _main
> 
> this also occurs with libgw.a because main is defined twice (once in 
> bearerbox and one in smsbox). Basically we should not include the *.o 
> files which contain the main routines into the libgw.a (by the way, 
> do we need libgw.a at all?).
> 
> The workaround is to do wmlscriptobjs = all the .o files. Does anyone 
> have a nicer macro to do this?
> 
> 
> 
> -- 
> Andreas Fink
> Global Networks Inc.
> 
> --------------------------------------------------------------
> ------------
> Tel: +41-61-6932730 Fax: +41-61-6932729  Mobile: +41-79-2457333
> Address:Global Networks Inc, Schwarzwaldallee 16, 4058 Basel, 
> Switzerland
> Web: http://www.global-networks.ch/     e-mail: 
> [email protected]
> --------------------------------------------------------------
> ------------
> Member of the GSM Association
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.