aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.target
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-04-28 00:48:53 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-04-28 00:48:53 +0800
commit632a0e1c92700d8dbe8e4474500db3cc28c571d3 (patch)
tree31977ca442a19b68080732bd250e16091e684279 /Makefile.target
parent0c8a719be79b979a039abaf24432de6fbc9b13e6 (diff)
downloadexternal_qemu-632a0e1c92700d8dbe8e4474500db3cc28c571d3.zip
external_qemu-632a0e1c92700d8dbe8e4474500db3cc28c571d3.tar.gz
external_qemu-632a0e1c92700d8dbe8e4474500db3cc28c571d3.tar.bz2
Allow BUILD_HOST_static to build statically-linked emulator
Statically linked emulator is easy to setup in sandboxed environment. With this and BUILD_HOST_static in build/ (seperate CL), statically-linked SDK tools can be built with the following command BUILD_HOST_static=1 make PRODUCT-sdk-aapt adb aidl dexdump fastboot \ llvm-rs-cc dmtracedump emulator emulator-arm emulator-x86 \ etc1tool hprof-conv mksdcard sqlite3 zipalign No need to build HW GL libraries (libOpenglRender, libGLES_CM_translator, libGLES_V2_translator and libEGL_translator) because statically-linked emulator doesn't support audio and graphics. (eg. -no-window) Change-Id: I209287a00f66295b8b8135451025428f03776a1a
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.target b/Makefile.target
index f7122fa..0f22387 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -323,7 +323,7 @@ endif
# Generate a completely static executable if needed.
# Note that this means no sound and graphics on Linux.
#
-ifeq ($(CONFIG_STATIC_EXECUTABLE),true)
+ifneq ($(strip $(CONFIG_STATIC_EXECUTABLE)$(BUILD_HOST_static)),)
LOCAL_SRC_FILES += dynlink-static.c
LOCAL_LDLIBS += -static
endif
@@ -409,7 +409,7 @@ common_LOCAL_SRC_FILES += $(SDLMAIN_SOURCES)
# Generate a completely static executable if needed.
# Note that this means no sound and graphics on Linux.
#
-ifeq ($(CONFIG_STATIC_EXECUTABLE),true)
+ifneq ($(strip $(CONFIG_STATIC_EXECUTABLE)$(BUILD_HOST_static)),)
common_LOCAL_SRC_FILES += dynlink-static.c
common_LOCAL_LDLIBS += -static
endif