[70475] trunk/dports/devel
mfeiri at macports.org
mfeiri at macports.org
Tue Aug 10 13:53:46 PDT 2010
Revision: 70475
http://trac.macports.org/changeset/70475
Author: mfeiri at macports.org
Date: 2010-08-10 13:53:45 -0700 (Tue, 10 Aug 2010)
Log Message:
-----------
new port to enable link time optimization with a minimal amount of hacks. fix #19679 and workaround for #23580.
Added Paths:
-----------
trunk/dports/devel/ld64/
trunk/dports/devel/ld64/Portfile
trunk/dports/devel/ld64/files/
trunk/dports/devel/ld64/files/patch-ld64.xcodeproj_project.pbxproj.diff
trunk/dports/devel/ld64/files/patch-src_LTOreader.hpp.diff
Added: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile (rev 0)
+++ trunk/dports/devel/ld64/Portfile 2010-08-10 20:53:45 UTC (rev 70475)
@@ -0,0 +1,52 @@
+# $Id$
+
+PortSystem 1.0
+
+name ld64
+version 85.2.1
+categories devel
+platforms darwin
+maintainers mfeiri
+homepage http://opensource.apple.com/source/ld64/
+master_sites http://opensource.apple.com/tarballs/ld64/
+license Apple Public Source License (APSL), version 2.0
+depends_build path:include/llvm-c/lto.h:llvm
+patchfiles patch-src_LTOreader.hpp.diff \
+ patch-ld64.xcodeproj_project.pbxproj.diff
+
+description ld64 is the new mach-o linker
+long_description ld64 combines several object files and libraries, \
+ resolves references, and produces an ouput file.
+
+checksums md5 6dac3ce6d3b495df9a3996cd5781c874 \
+ sha1 31a7debf4c407c32b8bd1a51a4b4a7ae68dc8b85 \
+ rmd160 42c80bd4ad6e9f96a757245e6a2b95084c009ff1
+
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/LTOReader.hpp \
+ ${worksrcpath}/ld64.xcodeproj/project.pbxproj
+}
+
+use_configure no
+build.target
+if {${os.major} > 9} {
+ build.cmd true
+} else {
+ build.cmd xcodebuild
+}
+
+destroot {
+ if {${os.major} > 9} {
+ file copy /usr/bin/ld ${destroot}${prefix}/bin
+ file copy /usr/bin/rebase ${destroot}${prefix}/bin
+ file copy /usr/share/man/man1/ld.1 ${destroot}${prefix}/share/man/man1
+ file copy /usr/share/man/man1/rebase.1 ${destroot}${prefix}/share/man/man1
+ } else {
+ file copy ${worksrcpath}/build/Release/ld ${destroot}${prefix}/bin
+ file copy ${worksrcpath}/build/Release/rebase ${destroot}${prefix}/bin
+ file copy ${worksrcpath}/doc/man/man1/ld.1 ${destroot}${prefix}/share/man/man1
+ file copy ${worksrcpath}/doc/man/man1/rebase.1 ${destroot}${prefix}/share/man/man1
+ }
+}
+
+livecheck.type none
Property changes on: trunk/dports/devel/ld64/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/ld64/files/patch-ld64.xcodeproj_project.pbxproj.diff
===================================================================
--- trunk/dports/devel/ld64/files/patch-ld64.xcodeproj_project.pbxproj.diff (rev 0)
+++ trunk/dports/devel/ld64/files/patch-ld64.xcodeproj_project.pbxproj.diff 2010-08-10 20:53:45 UTC (rev 70475)
@@ -0,0 +1,12 @@
+--- ld64.xcodeproj/project.pbxproj 2010-05-11 01:32:03.000000000 +0200
++++ ld64.xcodeproj/project.pbxproj 2010-05-16 22:54:39.000000000 +0200
+@@ -350,7 +350,7 @@
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/bash;
+- shellScript = "if [ -f /Developer/usr/local/include/llvm-c/lto.h ]; then\n\techo \"#define LTO_SUPPORT 1\" > ${DERIVED_FILE_DIR}/configure.h\nelse\n\techo \"#undef LTO_SUPPORT\t\" > ${DERIVED_FILE_DIR}/configure.h\nfi\n";
++ shellScript = "if [ -f @@PREFIX@@/include/llvm-c/lto.h ]; then\n\techo \"#define LTO_SUPPORT 1\" > ${DERIVED_FILE_DIR}/configure.h\nelse\n\techo \"#undef LTO_SUPPORT\t\" > ${DERIVED_FILE_DIR}/configure.h\nfi\n";
+ showEnvVarsInLog = 0;
+ };
+ F96D5367094A2754008E9EE8 /* ShellScript */ = {
+
Added: trunk/dports/devel/ld64/files/patch-src_LTOreader.hpp.diff
===================================================================
--- trunk/dports/devel/ld64/files/patch-src_LTOreader.hpp.diff (rev 0)
+++ trunk/dports/devel/ld64/files/patch-src_LTOreader.hpp.diff 2010-08-10 20:53:45 UTC (rev 70475)
@@ -0,0 +1,12 @@
+--- src/LTOReader.hpp 2008-07-11 03:15:14.000000000 +0200
++++ src/LTOReader.hpp 2010-05-16 22:56:59.000000000 +0200
+@@ -36,7 +36,7 @@
+ #include "ObjectFile.h"
+ #include "Options.h"
+
+-#include "llvm-c/lto.h"
++#include "@@PREFIX@@/include/llvm-c/lto.h"
+
+
+ namespace lto {
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100810/3bda6560/attachment-0001.html>
More information about the macports-changes
mailing list