Static compile flag

@pradeepto