bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/459] Shared library member is rejected for non-static link


From: hjl at lucon dot org
Subject: [Bug ld/459] Shared library member is rejected for non-static link
Date: 18 Oct 2004 20:05:39 -0000

------- Additional Comments From hjl at lucon dot org  2004-10-18 20:05 -------
Created an attachment (id=229)
 --> (http://sources.redhat.com/bugzilla/attachment.cgi?id=229&action=view)
A  testcase

address@hidden libs]$ make
cc    -c -o x.o x.c
cc -fPIC   -c -o foo.o foo.c
cc -shared -o libfoo.so foo.o
cc    -c -o bar.o bar.c
echo "GROUP (libfoo.so bar.o)" > libbar.so
cc -o x x.o -lbar -L. -lgcc -WL,--as-needed -lgcc_s -Wl,--no-as-needed -lc
-lgcc -Wl,--as-needed -lgcc_s --no-as-needed -Wl,-Bstatic
/usr/local/bin/ld: attempted static link of dynamic object `libfoo.so'
collect2: ld returned 1 exit status
make: *** [x] Error 1


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=459

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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