Re: static lib with libtool 1.5

2005-08-12 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Fri, Aug 12, 2005 at 01:43:33PM CEST: > > Would you like me to redo the examples once I will be able to a install > branch-2-0 or HEAD version ? Naa, since you don't mind my proposed changes, I'll just apply your patch with fixes. > > OK. When you can get

Re: static lib with libtool 1.5

2005-08-12 Thread Jeremie LE HEN
Hi Ralf, > > I made the changes we talked about in our previous mails. Here are a > > few notes : > > > > - I wanted to install the freshly checked-out branch-2-0 from > > CVS, in order to give real examples of the libtool output. > > This was really a pain. I've ran into severa

Re: static lib with libtool 1.5

2005-08-11 Thread Patrick Welche
On Thu, Aug 11, 2005 at 04:41:46PM +0200, Ralf Wildenhues wrote: > They also have position-independent relocations. > Try 'objdump -x' on my above example. Ah yes: .libs/foo.o: RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 0019 R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 0

Re: static lib with libtool 1.5

2005-08-11 Thread Ralf Wildenhues
* Jeremie LE HEN wrote on Thu, Aug 11, 2005 at 04:10:41PM CEST: > Hi Patrick, > > > quartz% diff -s foo.o .libs/foo.o > > Files foo.o and .libs/foo.o are identical Another hint: try ---snip int foo() { return 1; } int bar() { return foo(); } ---snip > I'm not a compiler guru, but as far as I can

Re: static lib with libtool 1.5

2005-08-11 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Thu, Aug 11, 2005 at 01:45:39PM CEST: > > I made the changes we talked about in our previous mails. Here are a > few notes : > > - I wanted to install the freshly checked-out branch-2-0 from > CVS, in order to give real examples of the libtool

Re: static lib with libtool 1.5

2005-08-11 Thread Patrick Welche
On Thu, Aug 11, 2005 at 03:41:22PM +0200, Ralf Wildenhues wrote: > Because in general they are _not_ identical on NetBSD. Show foo.c. Ah - it was a very simple foo.c ;-) quartz% cat foo.c void foo(void); void foo(void) { int i; i=0; } Cheers, Patrick ___

Re: static lib with libtool 1.5

2005-08-11 Thread Jeremie LE HEN
Hi Patrick, > Just to check, I just tried this: > > quartz% uname -s > NetBSD > quartz% libtool compile gcc -g -O -c foo.c > libtool: compile: gcc -g -O -c foo.c -fPIC -DPIC -o .libs/foo.o > libtool: compile: gcc -g -O -c foo.c -o foo.o >/dev/null 2>&1 > quartz% ls -laR > total 16 > drwxr-xr-x

Re: static lib with libtool 1.5

2005-08-11 Thread Ralf Wildenhues
* Patrick Welche wrote on Thu, Aug 11, 2005 at 03:09:29PM CEST: > On Wed, Jul 20, 2005 at 02:23:06PM +0200, Jeremie LE HEN wrote: > > IMO, the user is confused while reading this. Furthermore, the > > first statement is wrong in regard to the example on the NetBSD box > > (burger) : >

Re: static lib with libtool 1.5

2005-08-11 Thread Patrick Welche
On Wed, Jul 20, 2005 at 02:23:06PM +0200, Jeremie LE HEN wrote: > IMO, the user is confused while reading this. Furthermore, the > first statement is wrong in regard to the example on the NetBSD box > (burger) : > burger$ libtool compile gcc -g -O -c foo.c > mkdir .libs

Re: static lib with libtool 1.5

2005-08-11 Thread Jeremie LE HEN
Hi Ralf, > Sorry for the late response, I've been away. Once again, sorry for the late response :-). I made the changes we talked about in our previous mails. Here are a few notes : - I wanted to install the freshly checked-out branch-2-0 from CVS, in order to give real exam

Re: static lib with libtool 1.5

2005-08-02 Thread Ralf Wildenhues
Hi Jeremie, Sorry for the late response, I've been away. * Jeremie LE HEN wrote on Wed, Jul 20, 2005 at 02:23:06PM CEST: > > I began to read the documentation (from HEAD) again to make it clearer. > Here are a few notes : > > * Section 3.1 ``Creating object file'' : > << Since this is a lib

Re: static lib with libtool 1.5

2005-07-20 Thread Jeremie LE HEN
Hi Ralf, On Fri, Jul 01, 2005 at 05:02:46PM +0200, Ralf Wildenhues wrote: > * Jeremie LE HEN wrote on Fri, Jul 01, 2005 at 03:29:55PM CEST: > > > > > Your documentation points are valid, thanks. We should work on that. > > > > You are welcome, I can update the documentation about these subjects

Re: static lib with libtool 1.5

2005-07-01 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Fri, Jul 01, 2005 at 03:29:55PM CEST: > > > Your documentation points are valid, thanks. We should work on that. > > You are welcome, I can update the documentation about these subjects if > someone points me out the documentation source file (maybe it's si

Re: static lib with libtool 1.5

2005-07-01 Thread Jeremie LE HEN
Hi Ralf, > > Ok, I didn't know that too :-). I've had a look through the > > documentation, it would be worth to give an example of the use of > > this mode, IMHO. > > Your documentation points are valid, thanks. We should work on that. You are welcome, I can update the documentation about the

Re: static lib with libtool 1.5

2005-07-01 Thread Ralf Wildenhues
[ sorry, forgot one part ] * Ralf Wildenhues wrote on Fri, Jul 01, 2005 at 05:10:22AM CEST: > * Jeremie LE HEN wrote on Wed, Jun 29, 2005 at 11:20:18AM CEST: > > > > I think I got my problem resolved by using the lastest version of > > libtool (1.5.18) : with exactly the same command sequence, I

Re: static lib with libtool 1.5

2005-06-30 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Wed, Jun 29, 2005 at 11:20:18AM CEST: > > Ok, I didn't know that too :-). I've had a look through the > documentation, it would be worth to give an example of the use of > this mode, IMHO. Your documentation points are valid, thanks. We should work on that

Re: static lib with libtool 1.5

2005-06-29 Thread Jeremie LE HEN
Hi Ralf, thank you for spending your time resolving my problem. > First, a note to your Makefile: > > | ${LIB_A}: ${OBJS_A} > | libtool --mode=link ${CC} -o $@ $^ -static > | > | # -rpath is mandatory, libtool --mode=install will fail otherwise. > | ${LIB_SO}: ${OBJS_SO} > |

Re: static lib with libtool 1.5

2005-06-28 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Tue, Jun 28, 2005 at 05:14:14PM CEST: > > > > I'm trying to build both a static and a shared library. This used to > > > work fine with libtool-1.4, but since I upgraded to libtool-1.5, I can't > > > build a static library any more. I gave a try to the Chan

Re: static lib with libtool 1.5

2005-06-28 Thread Ralf Wildenhues
Hi Jeremie, * Jeremie LE HEN wrote on Tue, Jun 28, 2005 at 04:50:07PM CEST: > > This might be a very common question ; I checked the archives, but > didn't find anything relevant, unfortunately. Hmm, don't know. The problem is under-determined (read: we need more information to give an answer).

Re: static lib with libtool 1.5

2005-06-28 Thread Jeremie LE HEN
Hi Ralf, thanks for your fast reply. > > This might be a very common question ; I checked the archives, but > > didn't find anything relevant, unfortunately. > > Hmm, don't know. The problem is under-determined (read: we need more > information to give an answer). Yes sorry. > > I'm trying to