Does this (with appropriate -L’s of course)
gcc -shared -o megalib.so foo.o bar.o -la_static_lib -lb_static_lib
Not do it?
More Related Contents:
- building a .so that is also an executable
- Why does GCC create a shared object instead of an executable binary according to file?
- Merge multiple .so shared libraries
- When / How does Linux load shared libraries into address space?
- Build .so file from .c file using gcc command line
- Why are LIB files beasts of such a duplicitous nature?
- Why are LIB files beasts of such a duplicitous nature?
- Why do I have to define LD_LIBRARY_PATH with an export every time I run my application?
- How can a shared library (.so) call a function that is implemented in its loader code?
- “relocation R_X86_64_32S against ” linking Error
- What are the flags and macros in a Makefile? [closed]
- C | Static array: why does writing out-of-bounds not result in exception? [duplicate]
- C fopen vs open
- How to set socket timeout in C when making multiple connections?
- Working of fork() in linux gcc [duplicate]
- Where is PATH_MAX defined in Linux?
- What does the brk() system call do?
- “undefined reference to `pow'” even with math.h and the library link -lm [duplicate]
- using C code to get same info as ifconfig
- How to wait for exit of non-children processes
- How to use /dev/random or urandom in C?
- Disable variable-length automatic arrays in gcc
- What’s the difference between .so, .la and .a library files?
- Read and write to binary files in C?
- How to get file creation date in Linux?
- How do you write a C program to execute another program?
- Pipes, dup2 and exec()
- What API do I call to get the system uptime?
- Where are syscalls located in glibc source
- Linux function to get mount points