[131811] trunk/dports/devel/libunwind
jeremyhu at macports.org
jeremyhu at macports.org
Mon Jan 19 00:44:04 PST 2015
Revision: 131811
https://trac.macports.org/changeset/131811
Author: jeremyhu at macports.org
Date: 2015-01-19 00:44:04 -0800 (Mon, 19 Jan 2015)
Log Message:
-----------
libunwind: Support building ppc slice with clang using cctools assembler
Modified Paths:
--------------
trunk/dports/devel/libunwind/Portfile
trunk/dports/devel/libunwind/files/Makefile
Modified: trunk/dports/devel/libunwind/Portfile
===================================================================
--- trunk/dports/devel/libunwind/Portfile 2015-01-19 08:18:58 UTC (rev 131810)
+++ trunk/dports/devel/libunwind/Portfile 2015-01-19 08:44:04 UTC (rev 131811)
@@ -77,6 +77,13 @@
variant universal {}
+ set asflags {}
+ if {[variant_isset universal] && [lsearch ${universal_archs} ppc] != -1} {
+ if {[string match *clang* ${configure.cc}]} {
+ set asflags "-fno-integrated-as"
+ }
+ }
+
if {${os.major} < 11} {
# Snow Leopard's libSystem's libmacho does not contain getsectiondata()
@@ -94,10 +101,20 @@
CPPFLAGS="${configure.cppflags} -DNDEBUG" \
CFLAGS="${configure.cflags}" \
CXXFLAGS="${configure.cxxflags} ${cxx_stdlibflags}" \
+ ASFLAGS="${asflags}" \
LDFLAGS="${configure.ldflags} ${cxx_stdlibflags}" \
RC_ARCHS="[get_canonical_archs]" \
LIBUNWIND_CURRENT_VERSION=${version}
+ if {${os.major} < 10} {
+ # Xcode 2.5 fails
+ depends_build port:cctools
+
+ build.args-append \
+ AR=${prefix}/bin/ar \
+ RANLIB=${prefix}/bin/ranlib
+ }
+
destroot.target installlibs
destroot.args \
PREFIX="${prefix}" \
Modified: trunk/dports/devel/libunwind/files/Makefile
===================================================================
--- trunk/dports/devel/libunwind/files/Makefile 2015-01-19 08:18:58 UTC (rev 131810)
+++ trunk/dports/devel/libunwind/files/Makefile 2015-01-19 08:44:04 UTC (rev 131811)
@@ -78,7 +78,7 @@
$(CXX) $(ARCH_FLAGS) $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
$(OBJROOT)/%.o : %.S
- $(CC) $(ARCH_FLAGS) -force_cpusubtype_ALL $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $<
+ $(CC) $(ARCH_FLAGS) -force_cpusubtype_ALL $(SYSROOT_FLAGS) $(INCLUDES) $(CPPFLAGS) $(ASFLAGS) -c -o $@ $<
$(OBJROOT)/$(LIBUNWIND_FILENAME): $(OBJS)
$(CXX) -o $@ $(ARC_FLAGS) $(SYSROOT_FLAGS) $(LDFLAGS) \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150119/5cf394ad/attachment.html>
More information about the macports-changes
mailing list