[142125] trunk/dports/lang/ccl

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 04:26:11 PST 2015


Revision: 142125
          https://trac.macports.org/changeset/142125
Author:   ryandesign at macports.org
Date:     2015-11-04 03:27:58 -0800 (Wed, 04 Nov 2015)
Log Message:
-----------
ccl: fix compile failure with Xcode 7 (#49062)

Modified Paths:
--------------
    trunk/dports/lang/ccl/Portfile

Added Paths:
-----------
    trunk/dports/lang/ccl/files/
    trunk/dports/lang/ccl/files/xcode7.patch

Modified: trunk/dports/lang/ccl/Portfile
===================================================================
--- trunk/dports/lang/ccl/Portfile	2015-11-04 10:16:05 UTC (rev 142124)
+++ trunk/dports/lang/ccl/Portfile	2015-11-04 11:27:58 UTC (rev 142125)
@@ -42,6 +42,8 @@
             return -code error "architecture ${configure.build_arch} is not supported by ${name}"
         }
     }
+    
+    patchfiles-append   xcode7.patch
 }
 
 platform darwin powerpc {

Added: trunk/dports/lang/ccl/files/xcode7.patch
===================================================================
--- trunk/dports/lang/ccl/files/xcode7.patch	                        (rev 0)
+++ trunk/dports/lang/ccl/files/xcode7.patch	2015-11-04 11:27:58 UTC (rev 142125)
@@ -0,0 +1,46 @@
+--- lisp-kernel/darwinx8664/Makefile.orig	(revision 16167)
++++ lisp-kernel/darwinx8664/Makefile	(revision 16544)
+@@ -51,4 +51,20 @@
+ M4FLAGS = -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR
+ ASFLAGS = -arch x86_64 -g
++
++# In Xcode 7, the clang integrated assember complains that .stabs
++# directives are unsupported.  Work around this by using the system
++# assembler.  (Apparently, we'll have to quit using .stabs directives
++# at some point soon.)
++
++# Since Xcode 7 only runs on Yosemite and later, use OS version as a
++# heuristic to detect whether the -Q flag is available.  It seems to
++# be available as far back as Lion, but on Snow Leopard, "as" doesn't
++# know about -Q.
++
++yosemite_plus := $(shell uname -r | awk -F. '{ if ($$1 >= 14) print "t" }')
++ifeq ($(yosemite_plus),t)
++ASFLAGS += -Q
++endif
++
+ CDEFINES = -DDARWIN -DX86 -DX8664 -DTCR_IN_GPR -DSVN_REVISION=$(SVN_REVISION) \
+ 	   -D_DARWIN_NO_64_BIT_INODE -DUSE_DTRACE
+--- lisp-kernel/darwinx8632/Makefile.orig	(revision 16133)
++++ lisp-kernel/darwinx8632/Makefile	(revision 16544)
+@@ -30,4 +30,20 @@
+ M4FLAGS = -DDARWIN -DX86 -DX8632
+ ASFLAGS = -arch i386 -g
++
++# In Xcode 7, the clang integrated assember complains that .stabs
++# directives are unsupported.  Work around this by using the system
++# assembler.  (Apparently, we'll have to quit using .stabs directives
++# at some point soon.)
++
++# Since Xcode 7 only runs on Yosemite and later, use OS version as a
++# heuristic to detect whether the -Q flag is available.  It seems to
++# be available as far back as Lion, but on Snow Leopard, "as" doesn't
++# know about -Q.
++
++yosemite_plus := $(shell uname -r | awk -F. '{ if ($$1 >= 14) print "t" }')
++ifeq ($(yosemite_plus),t)
++ASFLAGS += -Q
++endif
++
+ CDEFINES = -DDARWIN -DX86 -DX8632 -DSVN_REVISION=$(SVN_REVISION) -D_DARWIN_NO_64_BIT_INODE -DUSE_DTRACE
+ CDEBUG = -g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/670765a2/attachment.html>


More information about the macports-changes mailing list