1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Fix a problem with 'make install' on macOS if user has a GNU sed before

the native one in PATH (we would end up giving incompatible options).

Also omit the '-s' in LFLAGS for macOS, the linker just warns about that
option being obsolete and ignored.
This commit is contained in:
magnum 2018-02-28 16:42:04 +01:00
parent 63defd1cea
commit a3759d77cf

View File

@ -54,6 +54,7 @@ SED_IN_PLACE := -i
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CC := clang CC := clang
# the sed -i option of macOS requires a parameter for the backup file (we just use "") # the sed -i option of macOS requires a parameter for the backup file (we just use "")
SED := /usr/bin/sed
SED_IN_PLACE := -i "" SED_IN_PLACE := -i ""
PROD_VERS := $(shell sw_vers -productVersion | cut -d. -f2) PROD_VERS := $(shell sw_vers -productVersion | cut -d. -f2)
endif endif
@ -187,7 +188,9 @@ LFLAGS := $(LDFLAGS)
ifeq ($(DEBUG),0) ifeq ($(DEBUG),0)
CFLAGS += -O2 CFLAGS += -O2
ifneq ($(UNAME),Darwin)
LFLAGS += -s LFLAGS += -s
endif
else else
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
CFLAGS += -DDEBUG -Og -ggdb CFLAGS += -DDEBUG -Og -ggdb