I have been trying the mpicxx -profile=/path/to/mpicxx-cxx.conf option since I have gotten further with this method, but here is the output for both:
when using mpicxx.darshan method:
g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_install/include -L/home/adhaider/apps/mpich_install/lib -lmpicxx -Wl,-rpath -Wl,/home/adhaider/apps/mpich_install/lib -Wl, --enable-new-dtags -lmpi
* notice the above doesn't even have the darshan libs.
Now when using mpicxx -profile=/path/to/conf
g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_install/include -L/home/adhaider/apps/mpich_install/lib -lmpicxx -lmpicxx -L/home/adhaider/apps/darshan_install/lib -ldarshan -lz -Wl,@/home/adhaider/apps/darshan_install/share/ld-opts/darshan-base-ld-opts -Wl,-rpath -Wl,/home/adhaider/apps/mpich_install/lib -Wl,--enable-new-dtags -lmpi -L/home/adhaider/apps/darshan_install/lib -Wl,--start-group -ldarshan -ldarshan-stubs -Wl,--end-group -lz -lrt -lpthread