compile Oracle Pro*C code on FreeBSD

Tried to compile simple Oracle Pro*C code on FreeBSD and Oracle 9i.

I've had to modify $ORACLE_HOME/precomp/admin/pcscfg.cfg and add linux compatibility include dirs: /usr/compat/linux/usr/lib/gcc-lib/i386-redhat-linux/3.2/include, /usr/compat/linux/usr/include to sys_include.

After proc started producing valid c source code, but I didn't know how to compile this code, it produced massive ammounts of errors looking like this: .../libclntsh.so: undefined reference to `mmap@GLIBC_2.0'.
It turned out that I've tried to links FreeBSD binaries to linux (libcnlntsh) libraries. Changing Makefile's CC variable from gcc to /usr/compat/linux/usr/bin fixed problem and binary compiled without any problems.