Hi list.
I'm trying to use libtool to help me build a library. I wrote a simple
Makefile (here's a snippet :
<snip>
all: ${TARGET}
${TARGET}: ${OBJS}
libtool ${CC} ${CXXFLAGS} -g -o ${TARGET} ${LIBS} ${OBJS}
MyLib.lo: MyLib.cpp
libtool ${CC} ${CXXFLAGS} ${DEFS} ${INCS} -g -O -c MyLib.cpp
</snip>
), and after running 'make all' I got these files :
MyLib.lo
MyLib.o
libMyLib.la
libs/libMyLib.al
libs/libMyLib.la (which is a link libMyLib.la)
I've tried to link against the .la file buf ld failed saying that
it didn't recognize the file format. linking against the .al file in the
libs directory worked though (after I created a soft link to libMyLib.a
of course). I was wandering if this is the correct behaviour, and if I
should write the make file to rename the .al file to .a and install it,
and if so - then why does libtool create a link to the .la file.
Oded
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]