Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Make a .so file with .o and .a files

807575Sep 14 2001
I have a makefile that makes a .so out of .a and .so files
There are no compilation errors ,but this .so file cant be accessed from Coldfusion

I had a similar problem when i was using gcc and trying to compile a c++ program,but when i changed to C++ this problem got automatically solved
Only diff being there was no .a file to be linked

Please help

Here is the makefile
#
INCLUDE = -I.
CCFLAGS = -mt $(INCLUDE)
#
CC = cc
rm = rm
CCLD = cc
LDFLAGS = -Bdynamic -u malloc -misalign
CLFLAGS = -O
CCFLAGS = -DNETwork=2 -DRAID -DNDEBUG
LIBES = -Bdynamic -lm -lc -ldl -lnsl -lsocket -lc
CFLAGS = -Iinclude $(CLFLAGS) $(CCFLAGS)
LFLAGS = -Iinclude $(CLFLAGS) $(LDFLAGS)

# If you are using gcc
#
#CCC = g++ -fhandle-exceptions
#LD = g++
#GCC_LDOPTS = -nodefaultlibs -lc -lstdc++ -lgcc
SRC = a.cc
OBJ = a.o
UCIPATH = /home/uv/ucisdk

a.so: $(OBJ)
$(LD) -o a.so $(OBJ) $(UCIPATH)/UCI.a $(LIBES) $(GCC_LDOPTS)


clean:
rm -f a.so $(OBJ)


Thanks a lot in advance
Dimple
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2001
Added on Sep 14 2001
0 comments
482 views