[Android Software/Hacking General [Developers Only]] Surge1223:
BTW This post has nothing to do with open source, I don't even see the source. FWIW I just have no faith in people in this forum using source at all. Here I'll post the Android.mk i used to build fastboot statically for arm a year or so ago, it will have to be adapted to the new fastboot source since its no longer in C and instead is C++. Id be very impressed if anyone even uses it. You'll quickly see why it's useless to post items on xda in the name of open source.

# Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../mkbootimg \
$(LOCAL_PATH)/../../extras/ext4_utils

LOCAL_SRC_FILES := \
protocol.c \
engine.c \
bootimg.c \
fastboot.c

LOCAL_MODULE := fastboot
LOCAL_MODULE_TAGS := debug

ifeq ($(HOST_OS),linux)
LOCAL_SRC_FILES += usb_linux.c util_linux.c
endif

ifeq ($(HOST_OS),darwin)
LOCAL_SRC_FILES += usb_osx.c util_osx.c
LOCAL_LDLIBS += -framework CoreFoundation -framework IOKit \
-framework Carbon
endif

ifeq ($(HOST_OS),windows)
LOCAL_SRC_FILES += usb_windows.c util_windows.c
EXTRA_STATIC_LIBS := AdbWinApi
ifneq ($(strip $(USE_CYGWIN)),)
# Pure cygwin case
LOCAL_LDLIBS +=
LOCAL_C_INCLUDES += /usr/include/w32api/ddk
endif
ifneq ($(strip $(USE_MINGW)),)
# MinGW under Linux case
LOCAL_LDLIBS += -lws2_32
USE_SYSDEPS_WIN32 := 1
LOCAL_C_INCLUDES += /usr/i586-mingw32msvc/include/ddk
endif
LOCAL_C_INCLUDES += development/host/windows/usb/api
endif

LOCAL_STATIC_LIBRARIES := \
$(EXTRA_STATIC_LIBS) \
libselinux \
liblog \
libutils \
libcutils \
libzipfile \
libunz \
libext4_utils_host \
libsparse \
libziparchive \
libbase \
libz

ifneq ($(HOST_OS),windows)
LOCAL_STATIC_LIBRARIES += libselinux
endif # HOST_OS != windows

LOCAL_CPPFLAGS := -std=gnu89 -Wno-missing-field-initializers
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
system/core/base/include \
system/core/libutils \
system/core/liblog \
system/core/libcutils \
system/extras/ext4_utils \
external/expat \
bionic/libc \
external/zlib/src \
external/libcxx/include \
external/libcxxabi/include \
system/core/libziparchive \
frameworks/base/libs/androidfw \
frameworks/base/include/androidfw

LOCAL_LDLIBS := -lc -lgcc -ldl -lm -lz -static-libgcc -lstdc++
LOCAL_CFLAGS += -O2 -D_GNU_SOURCE -g -Wall

LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
LOCAL_LDFLAGS += -static
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_PACK_MODULE_RELOCATIONS := false
include $(BUILD_EXECUTABLE)

if anything I'll just get questions about posting the binary, which in the name of open source, I refuse. Doesn't mean I won't tell others how I did it.