From: Alan T. DeKok Date: Tue, 15 Jun 2021 12:01:04 +0000 (-0400) Subject: order library builds X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09e5d0f451c2668f81c2154a4e8afe6557210bcb;p=thirdparty%2Ffreeradius-server.git order library builds --- diff --git a/src/lib/all.mk b/src/lib/all.mk index 9e035bde5ac..ff4454b0733 100644 --- a/src/lib/all.mk +++ b/src/lib/all.mk @@ -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.