use Config; ... CCFLAGS => "--std=gnu99 $Config{ccflags}", # if that works, add other stuff, like -g and -Wall... ...