[klibc] klibc & dynamic linking

Arnd Bergmann arnd at arndb.de
Mon Jun 28 16:47:21 PDT 2004


On Donnerstag, 24. Juni 2004 20:00, kreijack at tiscali.it wrote:
> Hello,
> 
> Sorry if this question is a FAQ, but I don't find it anywere. Does klibc 
> support dynamic linking ?

It is supported, but with some restrictions:

- You can not link to other dynamic libraries in addition to klibc
- The library interface is not stable, i.e. you can only run with the
  exact lib binary that you built for.
- The last few versions (including 0.146) are broken, you need the
  patch below.

	Arnd <><

diff -urN klibc-0.137/klibc/Makefile klibc-0.137-s390/klibc/Makefile
--- klibc-0.137/klibc/Makefile	2004-06-10 08:59:15.000000000 +0200
+++ klibc-0.137-s390/klibc/Makefile	2004-06-11 11:14:30.000000000 +0200
@@ -53,6 +53,7 @@
 
 # Add any architecture-specific rules
 include arch/$(ARCH)/Makefile.inc
+EMAIN ?= -e main
 
 tests: $(TESTS)
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://www.zytor.com/pipermail/klibc/attachments/20040628/f57b7f59/attachment.bin


More information about the klibc mailing list