[91270] trunk/dports/devel/odcctools/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Tue Mar 27 22:55:17 PDT 2012
Revision: 91270
https://trac.macports.org/changeset/91270
Author: jeremyhu at macports.org
Date: 2012-03-27 22:55:16 -0700 (Tue, 27 Mar 2012)
Log Message:
-----------
odcctools: Address some possible build failures
Modified Paths:
--------------
trunk/dports/devel/odcctools/Portfile
Modified: trunk/dports/devel/odcctools/Portfile
===================================================================
--- trunk/dports/devel/odcctools/Portfile 2012-03-28 05:52:34 UTC (rev 91269)
+++ trunk/dports/devel/odcctools/Portfile 2012-03-28 05:55:16 UTC (rev 91270)
@@ -36,6 +36,9 @@
depends_run port:llvm-${llvm_version}
post-patch {
+ reinplace "/^int subsections_via_symbols/s/^int/extern int/" ${worksrcpath}/as/as.h
+ reinplace "/^bfd_boolean dwarf2_loc_mark_labels/s/^bfd_boolean/extern bfd_boolean/" ${worksrcpath}/as/dwarf2dbg.h
+
reinplace "s:\"llvm-mc\":\"llvm-mc-mp-${llvm_version}\":" ${worksrcpath}/as/driver.c
foreach file [glob ${worksrcpath}/{*/,}Makefile] {
@@ -57,7 +60,7 @@
LTO=-DLTO_SUPPORT \
CC="${configure.cc}" \
CXX="${configure.cxx}" \
- RC_CFLAGS="[get_canonical_archflags]" \
+ RC_CFLAGS="[get_canonical_archflags] `llvm-config-mp-${llvm_version} --cflags`" \
LLVM_MC="llvm-mc-mp-${llvm_version}"
destroot.args-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120327/32567430/attachment.html>
More information about the macports-changes
mailing list