Ticket #33201: Portfile-avrbinutils-fixrelax.diff
File Portfile-avrbinutils-fixrelax.diff, 1.7 KB (added by titus@…, 13 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name avr-binutils 5 version 2.20 6 revision 1 5 version 2.22 7 6 8 7 # Parameters for this port. 9 8 set crossgcc-target avr … … 15 14 categories cross devel 16 15 maintainers nomaintainer 17 16 homepage http://www.gnu.org/software/binutils/binutils.html 18 master_sites gnu:binutils \ 19 ftp://ftp.kernel.org/pub/linux/devel/binutils/ \ 20 http://ftp.kernel.org/pub/linux/devel/binutils/ 17 master_sites gnu:binutils 21 18 distname binutils-${version} 22 19 use_bzip2 yes 23 checksums md5 ee 2d3e996e9a2d669808713360fa96f8\24 sha1 747e7b4d94bce46587236dc5f428e5b412a590dc\25 rmd160 284074e2453e517d036ffce2c0f3d56439e2e5c020 checksums md5 ee0f10756c84979622b992a4a61ea3f5 \ 21 sha1 65b304a0b9a53a686ce50a01173d1f40f8efe404 \ 22 rmd160 34cebe4cdca9480d5dc6f6b00b052c48c8ac30dc 26 23 27 24 depends_lib port:gettext 28 25 … … 32 29 # Download everything to binutils/ 33 30 dist_subdir binutils 34 31 32 # fix crash in ld when given --relax option. 33 # see http://sourceware.org/bugzilla/show_bug.cgi?id=12161 34 patchfiles-append pr12161.diff 35 35 36 # Build in a different directory, as advised in the README file. 36 37 pre-configure { system "cd ${workpath} && mkdir -p build"} 37 38 configure.dir ${workpath}/build … … 158 159 159 160 post-destroot { 160 161 file rename "${destroot}/${prefix}/lib/libiberty.a" "${destroot}/${prefix}/avr/host/lib/" 162 # For LTO optimization: With LTO enabled, collect2 searches for avr-ld 163 ln -sf "${prefix}/avr/bin/ld" "${destroot}/${prefix}/avr/bin/avr-ld" 161 164 }