Howto port (cross-compile) iperf for QNX 6 on SH processor

My host developmnt machine is x86 QNX 6.2 or 6.3. Can anyone kindly tell me how to cross compile the iperf for SH4 target processor?

Two possibilities:

Create a proper Makefile architecture according to the Programmer’s Guide, Appendix B: Conventions for Makefiles, and create the SH4 target path (addvariant -i OS nto sh4 o-le or something like that)

Explicitly use the -Vgcc_ntoshle option of the qcc (not recommended)

Regards,
Albrecht