1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-29 03:18:30 +00:00

fix unrar deps errors when compiling with cygwin/msys

This commit is contained in:
Gabriele Gristina 2023-05-19 23:34:31 +02:00
parent ca53e78f7d
commit 52196839c8

View File

@ -217,6 +217,8 @@ ifneq ($(CC),clang)
CFLAGS_UNRAR += -Wno-class-memaccess CFLAGS_UNRAR += -Wno-class-memaccess
CFLAGS_UNRAR += -Wno-misleading-indentation CFLAGS_UNRAR += -Wno-misleading-indentation
CFLAGS_UNRAR += -Wno-format-overflow CFLAGS_UNRAR += -Wno-format-overflow
else
CFLAGS_UNRAR += -std=c++11
endif endif
CFLAGS_UNRAR += -Wno-missing-braces CFLAGS_UNRAR += -Wno-missing-braces
CFLAGS_UNRAR += -Wno-unused-variable CFLAGS_UNRAR += -Wno-unused-variable
@ -641,7 +643,7 @@ endif
ifeq ($(ENABLE_UNRAR),1) ifeq ($(ENABLE_UNRAR),1)
ifeq ($(USE_SYSTEM_UNRAR),0) ifeq ($(USE_SYSTEM_UNRAR),0)
obj/%.UNRAR.NATIVE.o: $(DEPS_UNRAR_PATH)/%.cpp obj/%.UNRAR.NATIVE.o: $(DEPS_UNRAR_PATH)/%.cpp
$(CXX) -std=c++11 -c $(CXXFLAGS) $(CFLAGS_NATIVE) $(CFLAGS_UNRAR) $< -o $@ -fpic $(CXX) -c $(CXXFLAGS) $(CFLAGS_NATIVE) $(CFLAGS_UNRAR) $< -o $@ -fpic
endif endif
endif endif