Make a .so file with .o and .a files
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