]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
order library builds
authorAlan T. DeKok <aland@freeradius.org>
Tue, 15 Jun 2021 12:01:04 +0000 (08:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 15 Jun 2021 13:27:12 +0000 (09:27 -0400)
src/lib/all.mk

index 9e035bde5ac52981dd1ca4775c552c5ce45cbef0..ff4454b0733640bf96183c74724229b60668afc5 100644 (file)
@@ -37,7 +37,11 @@ endef
 #
 #  All lib go into subdirectories of the "lib" directory.
 #
-SUBMAKEFILES := $(wildcard ${top_srcdir}/src/lib/*/all.mk)
+#  Manually order the basic ones, because Make is order dependent.
+#  And then get the rest by wildcard, and ensure unsure that they're
+#  all unique.
+#
+SUBMAKEFILES := $(strip $(call uniq,$(patsubst %,${top_srcdir}/src/lib/%/all.mk,util tls eap eap_aka_sim server unlang io) $(wildcard ${top_srcdir}/src/lib/*/all.mk)))
 
 #
 #  Add library-specific rules to link include files, etc.