how to bulid .so object file?

how to bulid .so object file?

Post by jacky cu » Fri, 30 Jun 2000 04:00:00



thanks

--
Best wish to you

Jacky

 
 
 

how to bulid .so object file?

Post by Martin Kahle » Sat, 01 Jul 2000 04:00:00


gcc -c -fPIC *.c
gcc -shared -o foo.so.1 -Wl,-soname,foo.so *.o

Hope that help,
Martin.

--
The early bird gets the worm. If you want something else for      
breakfast, get up later.

 
 
 

1. how to make one object file from several object files

I am developing a network driver.

And I need only one object file to setup module.

But I have several source.

examples about make file)

hwmain.o: hwmain.o hwfpga.o                        ----> I don't want to
link. I only need one object file from hwmain.o and hwfpga.o
 gcc -c hwmain.o hwmain.o hwfpga.o

hwmain.o:hwmain.c
 gcc -c hwmain.c -O2 -Wall -Wstrict-prototypes \
               -fomit-frame-pointer \
        -fno-strength-reduce -pipe -m486 -malign-loops=2 \
        -malign-jumps=2 -malign-functions=2 -DCPU=486 \
        -DMODULE -D__KERNEL__

hwfpga.o:source/hwfpga.c
 gcc -c source/hwfpga.c -O2 -Wall -Wstrict-prototypes \
               -fomit-frame-pointer \
        -fno-strength-reduce -pipe -m486 -malign-loops=2 \
        -malign-jumps=2 -malign-functions=2 -DCPU=486 \
        -DMODULE -D__KERNEL__

2. Jerky X/KDE

3. splitting an object file (.o) into multiple object files

4. Configuring RCS 5.7

5. Convert SunOS object files into Solaris object files?

6. Open Source at work :)

7. Finding object usage within an object file

8. split and search file via sh question

9. How to link object files from gcc and absoft f90 into a executable file?

10. header files needed if object files are available in C++ ?

11. can you link a.out object files with ELF files?

12. Can't open shared file object (libXmu.so.6) No such file or directory

13. File format for ELF object files