From 9616c80e25f49ba580e2b849af75822f52e3ef94 Mon Sep 17 00:00:00 2001 From: Nikolai Lifanov Date: Fri, 30 Dec 2016 08:41:15 -0500 Subject: [PATCH] respect ports tree CFLAGS and LFLAGS step 2 It's actually less confusing to let the port set the other two options as well, so just move the whole block under ifdef PORTNAME. --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 33bb69b97..1fe6359de 100644 --- a/src/Makefile +++ b/src/Makefile @@ -179,11 +179,11 @@ endif # Linux ifeq ($(UNAME),FreeBSD) ifndef PORTNAME CFLAGS_NATIVE := $(CFLAGS) -LFLAGS_NATIVE := $(LFLAGS) -CFLAGS_NATIVE += -march=native -endif CFLAGS_NATIVE += -I$(OPENCL_HEADERS_KHRONOS)/ +CFLAGS_NATIVE += -march=native +LFLAGS_NATIVE := $(LFLAGS) LFLAGS_NATIVE += -lpthread +endif endif # FreeBSD ifeq ($(UNAME),Darwin)