diff options
author | David 'Digit' Turner <digit@google.com> | 2010-03-08 18:33:50 -0800 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-03-08 18:33:50 -0800 |
commit | ab873b750621bca7eef41869c685dec8c363333a (patch) | |
tree | 94ea3d5e4634e4346280be35cd8ed80414a1b614 /Makefile.android | |
parent | 9a0f1fba0cacee05513653a553052e97e475b51c (diff) | |
download | external_qemu-ab873b750621bca7eef41869c685dec8c363333a.zip external_qemu-ab873b750621bca7eef41869c685dec8c363333a.tar.gz external_qemu-ab873b750621bca7eef41869c685dec8c363333a.tar.bz2 |
Add --static option to android-configure.sh in order to build static emulator executable.
This is needed to run the emulator in restricted environment where libX11.so and even
libstdc++.so are not available. Only tested on Linux. The resulting binary will not
start unless you use -no-window. Also don't expect any audio output working.
Change-Id: Ia736898cd3ae6eb928614a00a1a3e18cc8086a5c
Diffstat (limited to 'Makefile.android')
-rw-r--r-- | Makefile.android | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.android b/Makefile.android index a5385d4..1929cb3 100644 --- a/Makefile.android +++ b/Makefile.android @@ -625,7 +625,6 @@ endif ifeq ($(HOST_OS),linux) VL_SOURCES += usb-linux.c \ qemu-thread.c - LOCAL_LDLIBS += -lX11 else VL_SOURCES += usb-dummy-android.c endif @@ -769,6 +768,14 @@ endif LOCAL_LDLIBS += $(QEMU_AUDIO_LIB) +# Generate a completely static executable if needed. +# Note that this means no sound and graphics on Linux. +# +ifeq ($(CONFIG_STATIC_EXECUTABLE),true) + LOCAL_SRC_FILES += dynlink-static.c + LOCAL_LDLIBS += -static +endif + LOCAL_MODULE := emulator include $(BUILD_HOST_EXECUTABLE) |