]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Make objects depend on the .config file
authorAlan T. DeKok <aland@freeradius.org>
Sat, 19 Nov 2011 09:46:39 +0000 (11:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 19 Nov 2011 09:46:39 +0000 (11:46 +0200)
The source code compiles into different objects depending on
the contents of .config. Therefore, the objects should depend
on .config.

Previously, only the executables depended on .config. This meant
that they were re-linked when .config changed. But that relink
process used the old (and now wrong) objects.

wpa_supplicant/Makefile

index bb04db4d17340b0180cbf1e9553664f0b0c33dad..5ec720780cba44173e85c7607cb03dd79dae5ab5 100644 (file)
@@ -1399,15 +1399,17 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
        $(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
        @$(E) "  LD " $@
 
-wpa_supplicant: .config $(BCHECK) $(OBJS) $(EXTRA_progs)
+$(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config
+
+wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
        $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
        @$(E) "  LD " $@
 
-eapol_test: .config $(OBJS_t)
+eapol_test: $(OBJS_t)
        $(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
        @$(E) "  LD " $@
 
-preauth_test: .config $(OBJS_t2) 
+preauth_test: $(OBJS_t2)
        $(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
        @$(E) "  LD " $@