[MacPorts] #49227: gcc5 @5.2.0: fix gcj (was: fix gcj in gcc5)
MacPorts
noreply at macports.org
Mon Oct 12 11:03:19 PDT 2015
#49227: gcc5 @5.2.0: fix gcj
------------------------------------+----------------------
Reporter: howarth.at.macports@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords: haspatch
Port: gcc5 |
------------------------------------+----------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
* keywords: => haspatch
* owner: macports-tickets@… => mww@…
Old description:
> The attached Portfile.diff, gcj-libiconv-linkage.patch and boehm-gc-
> darwin15-hack.patch corrects the build of gcj so that it is functional.
> The changes include...
>
> 1) Pass -with-libiconv-prefix=${prefix} to configure so that the proper
> libiconv is used (as the Portfile has depends_lib port:libiconv.
>
> 2) Reduce alignment in boehm-gc to 2 with boehm-gc-darwin15-hack.patch in
> order to suppress breakage from the recompilation of the system
> libunwind.dylib against Apple Clang 7.0 in darwin15.
>
> 3) Apply gcj-libiconv-linkage.patch to provide the appropriate linkage on
> libiconv automatically for executables created with gcj.
>
> 4) In order to create ecj1 during the build, ecj-4.9.jar is added to
> distfiles and copied into the source directory as ecj.jar per upstream's
> build instructions for gcj.
>
> The functionality of the resulting gcj-mp-5 can be seen by compiling the
> testme.java source code....
>
> {{{
> public class testme {
> public static void main(String args[]){
> System.out.println("Hello");
> }
> }
> }}}
>
> using the command "gcj-mp-5 --main=testme -O testme.java" which will
> produce a functional a.out executable.
New description:
The attached Portfile.diff, gcj-libiconv-linkage.patch and boehm-gc-
darwin15-hack.patch corrects the build of gcj so that it is functional.
The changes include...
1. Pass -with-libiconv-prefix=${prefix} to configure so that the proper
libiconv is used (as the Portfile has depends_lib port:libiconv.
2. Reduce alignment in boehm-gc to 2 with boehm-gc-darwin15-hack.patch in
order to suppress breakage from the recompilation of the system
libunwind.dylib against Apple Clang 7.0 in darwin15.
3. Apply gcj-libiconv-linkage.patch to provide the appropriate linkage on
libiconv automatically for executables created with gcj.
4. In order to create ecj1 during the build, ecj-4.9.jar is added to
distfiles and copied into the source directory as ecj.jar per upstream's
build instructions for gcj.
The functionality of the resulting gcj-mp-5 can be seen by compiling the
testme.java source code....
{{{
public class testme {
public static void main(String args[]){
System.out.println("Hello");
}
}
}}}
using the command "gcj-mp-5 --main=testme -O testme.java" which will
produce a functional a.out executable.
--
--
Ticket URL: <https://trac.macports.org/ticket/49227#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list