about summary refs log tree commit diff
path: root/libraries.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libraries.mk')
-rw-r--r--libraries.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries.mk b/libraries.mk
index bc258b799f55..98cc9f363f44 100644
--- a/libraries.mk
+++ b/libraries.mk
@@ -35,7 +35,7 @@ libs_list :=
 define build-library =
   $(1)_NAME ?= $(1)
   _d := $$(strip $$($(1)_DIR))
-  _srcs := $$(foreach src, $$($(1)_SOURCES), $$(src))
+  _srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src)))
   $(1)_OBJS := $$(addsuffix .o, $$(basename $$(_srcs)))
   _libs := $$(foreach lib, $$($(1)_LIBS), $$($$(lib)_PATH))