linux-user: compile envlist.c only once
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/Makefile b/Makefile
index 3437989..912284a 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@
#######################################################################
# user-obj-y is code used by qemu userspace emulation
-user-obj-y = cutils.o cache-utils.o path.o
+user-obj-y = cutils.o cache-utils.o path.o envlist.o
libqemu_user.a: $(user-obj-y)
diff --git a/Makefile.target b/Makefile.target
index 74f869d..1e91cf2 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -87,7 +87,7 @@
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \
- elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o
+ elfload.o linuxload.o uaccess.o gdbstub.o gdbstub-xml.o
obj-$(TARGET_HAS_BFLT) += flatload.o
obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
diff --git a/linux-user/envlist.c b/envlist.c
similarity index 100%
rename from linux-user/envlist.c
rename to envlist.c
diff --git a/linux-user/envlist.h b/envlist.h
similarity index 100%
rename from linux-user/envlist.h
rename to envlist.h