[81296] trunk/dports/lang/erlang/Portfile
bfulgham at macports.org
bfulgham at macports.org
Thu Jul 28 21:36:26 PDT 2011
Revision: 81296
http://trac.macports.org/changeset/81296
Author: bfulgham at macports.org
Date: 2011-07-28 21:36:25 -0700 (Thu, 28 Jul 2011)
Log Message:
-----------
Correction for build under OS X 10.7 (Lion).
Modified Paths:
--------------
trunk/dports/lang/erlang/Portfile
Modified: trunk/dports/lang/erlang/Portfile
===================================================================
--- trunk/dports/lang/erlang/Portfile 2011-07-29 03:30:56 UTC (rev 81295)
+++ trunk/dports/lang/erlang/Portfile 2011-07-29 04:36:25 UTC (rev 81296)
@@ -4,6 +4,7 @@
PortSystem 1.0
name erlang
version R14B03
+revision 1
categories lang erlang
maintainers bfulgham
platforms darwin
@@ -101,6 +102,25 @@
configure.ldflags-append -framework CoreFoundation
}
+platform darwin 11 {
+ patchfiles-delete patch-lib_ssl_c_src_esock_openssl.c
+
+ # 10.6 (and 10.6.1) has a bad bug related to using dlopen in a thread.
+ # rdar://7209349 - http://www.openradar.appspot.com/7209349
+ # This is a workaround.
+ patchfiles-append patch-erts_emulator_sys_unix_ddll.c.diff
+ configure.ldflags-append -framework CoreFoundation
+
+ # We must build Erlang on LLVM with -O0 (see http://llvm.org/bugs/show_bug.cgi?id=7883
+ # for details). You can also build with gcc-4.2, but NOT the default Lion gcc-4.2,
+ # which is actually llvm-gcc-4.2; instead, you would need to install the gcc-4.2
+ # port.
+ configure.cflags-delete -O2
+ configure.cxxflags-delete -O2
+ configure.cflags-append -O0
+ configure.cxxflags-append -O0
+}
+
platform macosx {
if {[variant_isset wxwidgets]} {
# wxMac is 32-bit only
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110728/2cf331d7/attachment.html>
More information about the macports-changes
mailing list