This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: --disable-static on ELF fails
>>>>> Ulrich Drepper writes:
Ulrich> hjl@lucon.org (H.J. Lu) writes:
>> Please don't. The dynamically linked sln is useless. Maybe you can
>> link it against libc_pic.a. Can you?
Ulrich> This is what the existing rules should already do. Maybe I've broken
Ulrich> it somehow someday.
I'm appending the actual compile line so that you can analyse what
might be broken. The problem with the compile command seems to be
that the dynamic linker is not specified (which is ok for a static
library but not here) and therefore execution of sln fails.
Andreas
/opt/egcs/bin/gcc sln.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/usr/glibc/src/buildreport/19981115/elf -I.. -I../libio -I/usr/glibc/src/buildreport/19981115 -I../sysdeps/i386/elf -I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386 -I../linuxthreads/sysdeps/pthread/no-cmpxchg -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/libm-i387 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h !
-o /usr/glibc/src/buildreport/19981115/elf/sln.o
/opt/egcs/bin/gcc -nostdlib -nostartfiles -static -o /usr/glibc/src/buildreport/19981115/elf/sln /usr/glibc/src/buildreport/19981115/csu/crt1.o /usr/glibc/src/buildreport/19981115/csu/crti.o `/opt/egcs/bin/gcc --print-file-name=crtbegin.o` /usr/glibc/src/buildreport/19981115/elf/sln.o -Wl,-rpath-link=/usr/glibc/src/buildreport/19981115:/usr/glibc/src/buildreport/19981115/math:/usr/glibc/src/buildreport/19981115/elf:/usr/glibc/src/buildreport/19981115/nss:/usr/glibc/src/buildreport/19981115/nis:/usr/glibc/src/buildreport/19981115/db2:/usr/glibc/src/buildreport/19981115/rt:/usr/glibc/src/buildreport/19981115/resolv:/usr/glibc/src/buildreport/19981115/linuxthreads /usr/glibc/src/buildreport/19981115/libc.so.6 /usr/glibc/src/buildreport/19981115/libc_nonshared.a -lgcc /usr/glibc/src/buildreport/19981115/libc_pic.a `/opt/egcs/bin/gcc --print-file-name=crtend.o` /usr/glibc/src/buildreport/19981115/csu/crtn.o
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de