Changeset View
Changeset View
Standalone View
Standalone View
head/security/hashcat/files/patch-src_Makefile
--- src/Makefile.orig 2016-12-02 14:00:23 UTC | --- src/Makefile.orig 2016-12-02 14:00:23 UTC | ||||
+++ src/Makefile | +++ src/Makefile | ||||
@@ -101,25 +101,7 @@ BINARY_NATIVE := $(PROG_NAME) | @@ -60,7 +60,6 @@ OPENCL_HEADERS_KHRONOS := deps/OpenCL-H | ||||
## Native compiler paths | |||||
## | |||||
-CC := gcc | |||||
FIND := find | |||||
INSTALL := install | |||||
RM := rm | |||||
@@ -72,7 +71,6 @@ SED := gsed | |||||
endif | |||||
ifeq ($(UNAME),FreeBSD) | |||||
-CC := cc | |||||
SED := gsed | |||||
endif | |||||
@@ -101,25 +99,7 @@ BINARY_NATIVE := $(PROG_NAME) | |||||
## General compiler and linker options | ## General compiler and linker options | ||||
## | ## | ||||
-CFLAGS := -pipe -std=c99 -Iinclude/ -IOpenCL/ | -CFLAGS := -pipe -std=c99 -Iinclude/ -IOpenCL/ | ||||
-CFLAGS += -W | -CFLAGS += -W | ||||
-CFLAGS += -Wall | -CFLAGS += -Wall | ||||
-CFLAGS += -Wextra | -CFLAGS += -Wextra | ||||
-CFLAGS += -Wfloat-equal | -CFLAGS += -Wfloat-equal | ||||
Show All 10 Lines | |||||
-CFLAGS += -Werror-implicit-function-declaration | -CFLAGS += -Werror-implicit-function-declaration | ||||
-CFLAGS += -Wformat | -CFLAGS += -Wformat | ||||
-CFLAGS += -Wno-format-zero-length | -CFLAGS += -Wno-format-zero-length | ||||
-CFLAGS += -ftrapv | -CFLAGS += -ftrapv | ||||
+CFLAGS += -Iinclude/ -IOpenCL/ | +CFLAGS += -Iinclude/ -IOpenCL/ | ||||
# the following compiler options produce warnings that should be fixed at some time | # the following compiler options produce warnings that should be fixed at some time | ||||
@@ -137,18 +119,6 @@ CFLAGS += -ftrapv | @@ -137,18 +117,6 @@ CFLAGS += -ftrapv | ||||
#CFLAGS += -Wstack-usage=524288 | #CFLAGS += -Wstack-usage=524288 | ||||
-LFLAGS := | -LFLAGS := | ||||
- | - | ||||
-ifndef DEBUG | -ifndef DEBUG | ||||
-CFLAGS += -O2 | -CFLAGS += -O2 | ||||
-LFLAGS += -s | -LFLAGS += -s | ||||
-else | -else | ||||
-CFLAGS += -DDEBUG -g -ggdb | -CFLAGS += -DDEBUG -g -ggdb | ||||
-ifeq ($(DEBUG),2) | -ifeq ($(DEBUG),2) | ||||
-CFLAGS += -fsanitize=address -fno-omit-frame-pointer | -CFLAGS += -fsanitize=address -fno-omit-frame-pointer | ||||
-endif | -endif | ||||
-endif | -endif | ||||
- | - | ||||
## | ## | ||||
## Native compilation target | ## Native compilation target | ||||
## | ## | ||||
@@ -165,7 +135,6 @@ endif # Linux | @@ -165,7 +133,6 @@ endif # Linux | ||||
ifeq ($(UNAME),FreeBSD) | ifeq ($(UNAME),FreeBSD) | ||||
CFLAGS_NATIVE := $(CFLAGS) | CFLAGS_NATIVE := $(CFLAGS) | ||||
CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ | CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ | ||||
-CFLAGS_NATIVE += -march=native | -CFLAGS_NATIVE += -march=native | ||||
LFLAGS_NATIVE := $(LFLAGS) | LFLAGS_NATIVE := $(LFLAGS) | ||||
LFLAGS_NATIVE += -lpthread | LFLAGS_NATIVE += -lpthread | ||||
endif # FreeBSD | endif # FreeBSD |