On Tuesday 28 of February 2012 09:46:29 David C. Rankin wrote: > What magic autotool does this and how do I fix it? The flags show up in > the Makefiles and the config.status file. I have completely searched the > source code with grep -r and after patching none of the unwanted flags are > present before starting the build. When the build craters, I check the > Makefiles and config.status and the unwanted flags are back. This results > in the build failing with: Hi, the 'evil' LDFLAGS are probably being set in /etc/makepkg.conf Check my rpm PKGBUILD[1] for working solution. [1] http://aur.archlinux.org/packages/rp/rpm/PKGBUILD