Fix dh_groups.o build for some configurations
Need to include dh_groups.o in the build even if not all DH groups are included. Only internal crypto build case was doing this properly.
This commit is contained in:
parent
616ea674c8
commit
50ceddcfd6
2 changed files with 12 additions and 18 deletions
|
@ -627,18 +627,15 @@ OBJS += ../src/crypto/sha256-internal.o
|
|||
endif
|
||||
endif
|
||||
|
||||
ifdef CONFIG_INTERNAL_DH_GROUP5
|
||||
ifdef NEED_DH_GROUPS
|
||||
OBJS += ../src/crypto/dh_groups.o
|
||||
endif
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
ifdef CONFIG_INTERNAL_DH_GROUP5
|
||||
ifdef NEED_DH_GROUPS
|
||||
OBJS += ../src/crypto/dh_group5.o
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
endif
|
||||
else
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
OBJS += ../src/crypto/dh_groups.o
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -981,18 +981,15 @@ endif
|
|||
OBJS += $(SHA256OBJS)
|
||||
endif
|
||||
|
||||
ifdef CONFIG_INTERNAL_DH_GROUP5
|
||||
ifdef NEED_DH_GROUPS
|
||||
OBJS += ../src/crypto/dh_groups.o
|
||||
endif
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
ifdef CONFIG_INTERNAL_DH_GROUP5
|
||||
ifdef NEED_DH_GROUPS
|
||||
OBJS += ../src/crypto/dh_group5.o
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
endif
|
||||
else
|
||||
ifdef NEED_DH_GROUPS_ALL
|
||||
OBJS += ../src/crypto/dh_groups.o
|
||||
CFLAGS += -DALL_DH_GROUPS
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue