]> git.droids-corp.org - dpdk.git/blobdiff - mk/rte.app.mk
mk: sort libraries in dependency lists
[dpdk.git] / mk / rte.app.mk
index 384dc06b2c8d1db8415233ed8049b9fac12e06f5..83e042e416b383a60a3683833cd9871ee4616e86 100644 (file)
@@ -290,8 +290,8 @@ LDLIBS_NAMES += $(patsubst -Wl$(comma)-l%,lib%.a,$(filter -Wl$(comma)-l%,$(LDLIB
 
 # list of found libraries files (useful for deps). If not found, the
 # library is silently ignored and dep won't be checked
-LDLIBS_FILES := $(wildcard $(foreach dir,$(LDLIBS_PATH),\
-       $(addprefix $(dir)/,$(LDLIBS_NAMES))))
+LDLIBS_FILES := $(sort $(wildcard $(foreach dir,$(LDLIBS_PATH),\
+       $(addprefix $(dir)/,$(LDLIBS_NAMES)))))
 
 #
 # Compile executable file if needed