Recompiling with a different compiler

The required tools for recompiling the src or libsrc directory are as follows:

To recompile the src and libsrc directories

  1. Edit the make.env file and modify it with the path to your compiler.
  2. Change to the src or libsrc directory and run the gmake or make command:
    # gmake
  3. After writing the application, compile it as follows:

    On Solaris 10:

    # gcc -I /opt/VRTSfssdk/6.2.0.000/include \
     -L /opt/VRTSfssdk/6.2.0.000/lib -ldl -o MyApp \
    MyApp.c libvxfsutil.a

    On Solaris 11:

    # gcc -I /opt/VRTSfssdk/include \
     -L /opt/VRTSfssdk/lib -ldl -o MyApp \
    MyApp.c libvxfsutil.a

To compile the src or libsrc directory, edit the make.env file as follows:

  1. Select the compiler path on your local system. Set the CC variable to be the path on your system:
    CC=/opt/SUNWspro/SUNWspro/bin
    #CC=/usr/local/bin/gcc

    Use whichever path is appropriate for your compiler.

  2. Change to the src or libsrc directory and type:
    # gmake

    or

    # make