Subject: Re: problem building ocaml under macosx
To: Antoine Reilles <Antoine.Reilles@loria.fr>
From: Dan Winship <danw@NetBSD.org>
List: tech-pkg
Date: 03/18/2004 06:41:13
On Mar 17, 2004, at 3:43 PM, Antoine Reilles wrote:

> Hi,
>
> when building ocaml under macosx 10.3, I have the following problem :
>
> rm -f libtclstub8.4.a
> libtool  --mode=link gcc -pipe -rpath /Volumes/NetBSD/pkg/lib -o 
> libtclstub8.4.a tclStubLib.o  ; ranlib libtclstub8.4.a
> libtool: link: warning: `-L' is ignored for archives/objects
> libtool: link: warning: `-rpath' is ignored for archives
> ar cru libtclstub8.4.a
> ar: no archive members specified

This is a behavior change in libtool 1.5. It requires you to pass 
"tclStubLib.lo" rather than "tclStubLib.o". But even if you fix this, 
the build will just break later on. The problem is that tcl (and tk) 
already have their own building-shared-libraries logic, and we patch in 
some different logic using libtool, which apparently works on NetBSD, 
but messes up on other platforms. If you remove all of patch-aa except 
for the first chunk (s/CFLAGS=/CFLAGS+=/), it will build.

-- Dan