fixed linking problem - the arch makepkg command was using LDFLAGS with --as-needed in its makepkg.conf.  I just removed it from the conf