Some autotool files (configure.ac) expect host build flags to be defined as BUILD_CFLAGS, BUILD_CXXFLAGS, BUILD_CPPFLAGS and BUILD_LDFLAGS. Especially these files tend to default to LDFLAGS for BUILD_LDFLAGS, which makes host utilities built with these flags fail with buildpie=yes because of differing compiler and linker options. One example is libatasmart where this patch fixes the build.