Add an autoconf check for -retain-symbols-file and conditionalize