diff --git a/docs/changes.txt b/docs/changes.txt index 04603fbf0..135392170 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -59,6 +59,7 @@ - Building: Add SHARED variable to Makefile to choose if hashcat is build as static or shared binary (using libhashcat.so/hashcat.dll) - Building: Removed the use of RPATH on linker level +- Building: Removed compiler option -march=native as this created problems for maintainers on various distributions - Building: Replaced linking of CRT_glob.o with the use of int _dowildcard - Commandline: Do some checks related to custom-charset options if user specifies them - CPU Affinity: Fixed memory leak in case invalid cpu Id was specified diff --git a/src/Makefile b/src/Makefile index 775dd7b8a..5ffb11d39 100644 --- a/src/Makefile +++ b/src/Makefile @@ -182,7 +182,6 @@ endif ifeq ($(UNAME),Linux) CFLAGS_NATIVE := $(CFLAGS) CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ -CFLAGS_NATIVE += -march=native CFLAGS_NATIVE += -DWITH_HWMON LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -lpthread -ldl @@ -192,7 +191,6 @@ ifeq ($(UNAME),FreeBSD) ifndef PORTNAME CFLAGS_NATIVE := $(CFLAGS) CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ -CFLAGS_NATIVE += -march=native LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -lpthread endif @@ -201,7 +199,6 @@ endif # FreeBSD ifeq ($(UNAME),Darwin) export MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS_NATIVE := $(CFLAGS) -CFLAGS_NATIVE += -march=native LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -framework OpenCL LFLAGS_NATIVE += -lpthread @@ -210,7 +207,6 @@ endif # Darwin ifeq ($(UNAME),CYGWIN) CFLAGS_NATIVE := $(CFLAGS) CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ -CFLAGS_NATIVE += -march=native CFLAGS_NATIVE += -DWITH_HWMON LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -Wl,--dynamicbase -Wl,--nxcompat @@ -220,7 +216,6 @@ endif # CYGWIN ifeq ($(UNAME),MSYS2) CFLAGS_NATIVE := $(CFLAGS) CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ -CFLAGS_NATIVE += -march=native CFLAGS_NATIVE += -DWITH_HWMON LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -Wl,--dynamicbase -Wl,--nxcompat