Apache mod_rpaf-2.0.so will not compile as ELF 64-bit module
I am trying to create the Apache 2.2 mod_rpaf-2.0.so module on our Solaris 10 server using Oracle Development Studio 12.5 and apxs but I can not get it to compile as an ELF-64 bit module using this command:
$OHS_HOME/bin/apxs -inoq -c -Wc CC -m64 -L /usr/lib/sparcv9 mod_rpaf-2.0.so mod_rpaf-2.0.c
file $OHS_HOME/modules/mod_rpaf-2.0.so
/opt/oracle/middletier/Oracle_FRHome1/ohs/modules/mod_rpaf-2.0.so: ELF 32-bit MSB dynamic lib SPARC32PLUS Version 1, V8+ Required, UltraSPARC3 Extensions Required, dynamically linked, not stripped
Here is the PATH and LD_LIBRARY_PATH I am using: