Added the --no-as-needed gcc option to be sure.