Oracle, gcc and Solaris - solution
Date: Fri, 6 May 1994 13:41:58 GMT
Message-ID: <mmaroldaCpDvDy.MxM_at_netcom.com>
Awhile back there were some questions posted with respect to using gcc and oracle on sun Solaris 2.x operating systems. I don't remember seeing any resolutions, but thanks to a co-contractor of mine here at Mobil ( Al Hopper ) we were able to get gcc, Oracle v7.0.16 and Solaris 2.3 to work together happily (so far...).
The following are modified examples taken from the proc.mk makefile supplied in the $ORACLE_HOME/proc/demo directory. only changes we need to make were:
- Change the compiler: old: RCC=cc -I. -O -xcg92
new:
RCC= gcc -I. -O
2) Modify the line that does the linking:
old:
samplec: samplec.c samplec.pc
_at_$(ECHO) $(RCC) $(CFLAGS) $(LDFLAGS) -o $@ samplec.c $(PROLDLIBS)
new:
samplec: samplec.c samplec.pc
_at_$(ECHO) $(RCC) $(CFLAGS) -Xlinker -u -Xlinker __cg92_libc \
-L/opt/SUNWspro/SC2.0.1/cg92 /opt/SUNWspro/SC2.0.1/cg92/__fstd.o \ $(LDFLAGS) -o $_at_ samplec.c $(PROLDLIBS)
I hope this helps!
-- Mike Marolda mmarolda_at_netcom.com Allen, TexasReceived on Fri May 06 1994 - 15:41:58 CEST