Are you building from PKGBUILD? If you are, add !buildflags to options. I had exactly same issue as I had some custom CFLAGS in my /etc/makepkg.conf
Are you building from PKGBUILD? If you are, add !buildflags to options. I had exactly same issue as I had some custom CFLAGS in my /etc/makepkg.conf