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.
pull/940/head
Nikolai Lifanov 7 years ago
parent fd2ea078bc
commit 4cce9a9fd1

@ -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

Loading…
Cancel
Save