cd $(DIR_APP) && find crypto/ -name Makefile -exec \
sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
- cd $(DIR_APP) && ./Configure $(CONFIGURE_OPTIONS)
+ cd $(DIR_APP) && ./Configure $(CONFIGURE_OPTIONS) \
+ $(CFLAGS) $(LDFLAGS)
+
+ # Apply patch for changing DEFAULT cipher list (needed after configure)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/openssl-1.1.0g-weak-ciphers.patch
cd $(DIR_APP) && make depend
cd $(DIR_APP) && make