wpa_supplicant: Make objects depend on the .config file
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.
This commit is contained in:
parent
57ebba598d
commit
8205c82a48
1 changed files with 5 additions and 3 deletions
|
@ -1399,15 +1399,17 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
|
||||||
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
|
||||||
@$(E) " LD " $@
|
@$(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)
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
|
||||||
@$(E) " LD " $@
|
@$(E) " LD " $@
|
||||||
|
|
||||||
eapol_test: .config $(OBJS_t)
|
eapol_test: $(OBJS_t)
|
||||||
$(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
|
$(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
|
||||||
@$(E) " LD " $@
|
@$(E) " LD " $@
|
||||||
|
|
||||||
preauth_test: .config $(OBJS_t2)
|
preauth_test: $(OBJS_t2)
|
||||||
$(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
|
$(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
|
||||||
@$(E) " LD " $@
|
@$(E) " LD " $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue