[khronos-opencl-headers] 07/08: don't omit CPPFLAGS

Andreas Beckmann anbe at moszumanska.debian.org
Mon Sep 21 13:18:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository khronos-opencl-headers.

commit 8707c030fe4aaa84fa038dda04f202eb1b9a0122
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Sep 21 15:01:05 2015 +0200

    don't omit CPPFLAGS
---
 debian/changelog  | 1 +
 debian/t/Makefile | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3d5df4f..9d3b7c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ khronos-opencl-headers (2.0~svn31815-1) UNRELEASED; urgency=medium
   * New upstream snapshot (2015-08-10).
     - Includes cl2.hpp.  (Closes: #795778)
   * Convert packaging repository from SVN to GIT.
+  * Improve portability of header compile tests.
 
  -- Andreas Beckmann <anbe at debian.org>  Mon, 21 Sep 2015 14:19:10 +0200
 
diff --git a/debian/t/Makefile b/debian/t/Makefile
index f4d1260..d90d3f2 100644
--- a/debian/t/Makefile
+++ b/debian/t/Makefile
@@ -15,11 +15,11 @@ check:
 	$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_0_APIS
 
 compile_opencl_h:
-	$(CC) $(CFLAGS) -c opencl_h.c
-	$(CXX) $(CXXFLAGS) -c opencl_h.cpp
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c opencl_h.c
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c opencl_h.cpp
 
 compile_cl_hpp:
-	$(CXX) $(CXXFLAGS) -c cl_hpp.cpp
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c cl_hpp.cpp
 
 clean:
 	$(RM) *.o

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/khronos-opencl-headers.git



More information about the Pkg-opencl-commits mailing list