perl Makefile.PL CC=g++ CCFLAGS="full space-delimited list of all the flags that you want"