diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index e10f299cd..219c5c404 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1007,6 +1007,11 @@ ifdef CONFIG_DELAYED_MIC_ERROR_REPORT CFLAGS += -DCONFIG_DELAYED_MIC_ERROR_REPORT endif +ifdef CONFIG_FIPS +CFLAGS += -DCONFIG_FIPS +MD5OBJS += ../src/crypto/md5-non-fips.o +endif + OBJS += ../src/drivers/scan_helpers.o OBJS += $(SHA1OBJS) $(DESOBJS) @@ -1066,11 +1071,6 @@ OBJS += $(OBJS_d) ../src/drivers/drivers.o OBJS += $(OBJS_l2) endif -ifdef CONFIG_FIPS -CFLAGS += -DCONFIG_FIPS -MD5OBJS += ../src/crypto/md5-non-fips.o -endif - ifdef CONFIG_NDIS_EVENTS_INTEGRATED CFLAGS += -DCONFIG_NDIS_EVENTS_INTEGRATED OBJS += ../src/drivers/ndis_events.o