diff options
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) |