gcc - Compile Ada sources without the shared libraries -
how can compile hello world
program here on glibc environment , run on uclibc environment?
localhost:~$ readelf -d /home/localhost/hello | grep needed 0x0000000000000001 (needed) shared library: [libc.so.6]
have @ dlopen() library set of functions. you'll need load libraries source file itself. following code in c, can use interafaces.c in ada interoperate c libraries:
lib_handle = dlopen("/opt/lib/libctest.so", rtld_lazy); if (!lib_handle) { fprintf(stderr, "%s\n", dlerror()); exit(1); }
visit link help. man page dlopen(3) should help.
Comments
Post a Comment