libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: genarating map files for libraries


From: Prokash Sinha
Subject: Re: genarating map files for libraries
Date: Mon, 25 Jan 2010 12:58:36 -0800

I must have something wrong in the configuration I suppose. 

assafras:i386 psinha$ ./libtool --version
ltmain.sh (GNU libtool) 2.2.6b (1.922.2.111 2002/10/23 02:54:36)

Now i'm getting something like this

Making all in lib
/bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I../../../libbuffer-0.0.1/lib     -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -fno-omit-frame-pointer -fno-strict-aliasing -save-temps -m32 -arch i386 -gdwarf-2 -framework Carbon -dead_strip -framework Cocoa -framework Security -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c -o buffer.lo ../../../libbuffer-0.0.1/lib/buffer.c
libtool: unrecognized option `--tag=CC'
Try `libtool --help' for more information.
make[2]: *** [buffer.lo] Error 1

CC was set to /usr/bin/gcc-4.0, but it did not replace the CC in --tag=CC is not known.




On Mon, Jan 25, 2010 at 9:04 AM, Peter O'Gorman <address@hidden> wrote:
On Mon, Jan 25, 2010 at 08:44:12AM -0800, Prokash Sinha wrote:
> First very sorry for the delayed response.
>
> If I do this in the Makefile.in  then I don't get any error and it also does
> not produce the map file.
>
> ##$(LINK) -Wl,-map,libbuffer.map  -rpath $(libdir) $(libbuffer_la_LDFLAGS)
> $(libbuffer_la_OBJECTS) $(libbuffer_la_LIBADD) $(LIBS)
> libbuffer.la: $(libbuffer_la_OBJECTS) $(libbuffer_la_DEPENDENCIES)
>         $(LINK) -rpath $(libdir) $(libbuffer_la_LDFLAGS)
> $(libbuffer_la_OBJECTS) $(libbuffer_la_LIBADD) -Wl,-Map -Wl, libbuffer.map
> $(LIBS)
>
> If I made sure that there is no blank space between -Wl, and libbuffer.map
> then I get the following error -
>
> usr/bin/gcc-4.0 -arch i386 -r -keep_private_externs -nostdlib -o
> .libs/libbuffer.0.0.1.dylib-master.o  buffer.lo && /usr/bin/gcc-4.0 -arch
> i386 -dynamiclib -flat_namespace -undefined suppress -o
> .libs/libbuffer.0.0.1.dylib .libs/libbuffer.0.0.1.dylib-master.o  -lpthread
> -lc -Map libbuffer.map -install_name /usr/local/lib/libbuffer.0.dylib
> -compatibility_version 1 -current_version 1.1

[adding the list back to CC]

What version of libtool is generating this? Where is the -r coming from?
Why are you passing -Map instead of -map?

Passing -Wl,-map,libbuffer.map will likely work, but I am not sure why
the -Wl, quoting was removed above. Nor am I sure why gcc generates no
warning or error when it sees -Map, and just ignores it.

Peter
--
Peter O'Gorman
http://pogma.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]