1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00

respect ports tree CFLAGS and LFLAGS

FreeBSD ports need to respect flags passed down by the build system.
This enables FreeBSD hashcat port to use upstream hashcat source code
patch-free.
This commit is contained in:
Nikolai Lifanov 2016-12-30 08:19:00 -05:00
parent fd2ea078bc
commit 4cce9a9fd1

View File

@ -177,10 +177,12 @@ LFLAGS_NATIVE += -lpthread -ldl
endif # Linux
ifeq ($(UNAME),FreeBSD)
ifndef PORTNAME
CFLAGS_NATIVE := $(CFLAGS)
CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/
CFLAGS_NATIVE += -march=native
LFLAGS_NATIVE := $(LFLAGS)
CFLAGS_NATIVE += -march=native
endif
CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/
LFLAGS_NATIVE += -lpthread
endif # FreeBSD