targets/dri: move linker flags out of configure into Automake.inc