mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-26 07:30:58 +00: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:
parent
fd2ea078bc
commit
4cce9a9fd1
@ -177,10 +177,12 @@ LFLAGS_NATIVE += -lpthread -ldl
|
|||||||
endif # Linux
|
endif # Linux
|
||||||
|
|
||||||
ifeq ($(UNAME),FreeBSD)
|
ifeq ($(UNAME),FreeBSD)
|
||||||
|
ifndef PORTNAME
|
||||||
CFLAGS_NATIVE := $(CFLAGS)
|
CFLAGS_NATIVE := $(CFLAGS)
|
||||||
CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/
|
|
||||||
CFLAGS_NATIVE += -march=native
|
|
||||||
LFLAGS_NATIVE := $(LFLAGS)
|
LFLAGS_NATIVE := $(LFLAGS)
|
||||||
|
CFLAGS_NATIVE += -march=native
|
||||||
|
endif
|
||||||
|
CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/
|
||||||
LFLAGS_NATIVE += -lpthread
|
LFLAGS_NATIVE += -lpthread
|
||||||
endif # FreeBSD
|
endif # FreeBSD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user