[clinfo] 70/148: On Darwin, use -framework instead of -l
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch clinfo
in repository clinfo.
commit 38cc1d8345b3d44d633823b0cd6d798413db08de
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Fri Sep 26 22:37:56 2014 +0200
On Darwin, use -framework instead of -l
---
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index aadbb33..e7fc8fc 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,13 @@ VPATH=$(SRCDIR)
HDR=$(wildcard $(SRCDIR)/*.h)
-LDLIBS=-lOpenCL
+PLATFORM=$(shell uname -s)
+
+ifeq ($(PLATFORM),Darwin)
+ LDLIBS=-framework OpenCL
+else
+ LDLIBS=-lOpenCL
+endif
clinfo:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list