if ab_match_arch amd64 || \
   ab_match_arch i486; then
    abinfo "Setting -fPIC ..."
    export CFLAGS="${CFLAGS} -fPIC"
    export LDFLAGS="${LDFLAGS} -fPIC"
fi

abinfo "Dropping -ffunction-sections, -fdata-sections, --gc-sections flags to fix build ..."
export CFLAGS="${CFLAGS/-ffunction-sections -fdata-sections/}"
export LDFLAGS="${LDFLAGS/-Wl,--gc-sections/}"
