changeset 2029:97165c79d7a1

* cdl/memalloc.cdl: Use the CXXFLAGS for the native compiler to avoid passing it flags only valid for C.
author asl
date Sat, 30 Jul 2005 11:42:54 +0000
parents e0d4cd2bcc2c
children 6e1b638b0c53
files packages/services/memalloc/common/current/ChangeLog packages/services/memalloc/common/current/cdl/memalloc.cdl
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/ChangeLog
+++ b/packages/services/memalloc/common/current/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-22  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/memalloc.cdl: Use the CXXFLAGS for the native compiler to
+	avoid passing it flags only valid for C.
+
 2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* cdl/memalloc.cdl: Added reference to documentation
--- a/packages/services/memalloc/common/current/cdl/memalloc.cdl
+++ b/packages/services/memalloc/common/current/cdl/memalloc.cdl
@@ -271,7 +271,7 @@ cdl_package CYGPKG_MEMALLOC {
 
         make -priority 50 {
             heapgeninc.tcl : <PACKAGE>/src/heapgen.cpp
-            $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,heapgen.tmp -E $< -o $@
+            $(CC) $(ACTUAL_CXXFLAGS) $(INCLUDE_PATH) -Wp,-MD,heapgen.tmp -E $< -o $@
             @sed -e '/^ *\\/d' -e "s#.*: #$@: #" heapgen.tmp > $(notdir $@).deps
             @rm heapgen.tmp
         }
@@ -290,7 +290,7 @@ cdl_package CYGPKG_MEMALLOC {
 
         make_object {
             heaps.o.d : heaps.cxx
-            $(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,heaps.tmp -c -o $(OBJECT_PREFIX)_$(notdir $(@:.o.d=.o)) $<
+            $(CC) $(ACTUAL_CXXFLAGS) $(INCLUDE_PATH) -Wp,-MD,heaps.tmp -c -o $(OBJECT_PREFIX)_$(notdir $(@:.o.d=.o)) $<
             @sed -e '/^ *\\/d' -e "s#.*: #$@: #" heaps.tmp > $@
             @rm heaps.tmp
         }