| https://bugs.gentoo.org/attachment.cgi?id=102974 |
| https://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920 |
| |
| diff -ur cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java |
| --- cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java 2006-11-29 13:05:30.000000000 +0100 |
| +++ cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java 2006-11-29 13:14:00.000000000 +0100 |
| @@ -35,7 +35,7 @@ |
| private static String[] linkerOptions = new String[]{"-bundle", |
| "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", |
| "-static", "-shared", "-symbolic", "-Xlinker", |
| - "--export-all-symbols", "-static-libgcc",}; |
| + "--export-all-symbols", "-static-libgcc", "-pg", }; |
| private static final GccLinker dllLinker = new GccLinker("gcc", objFiles, |
| discardFiles, "lib", ".so", false, new GccLinker("gcc", objFiles, |
| discardFiles, "lib", ".so", true, null)); |
| diff -ur cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java |
| --- cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java 2006-11-29 13:05:30.000000000 +0100 |
| +++ cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java 2006-11-29 13:13:21.000000000 +0100 |
| @@ -41,7 +41,7 @@ |
| ".lib", ".dll", ".so", ".sl"}; |
| private static String[] linkerOptions = new String[]{"-bundle", "-dylib", |
| "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib", |
| - "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"}; |
| + "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker", "-pg" }; |
| private static final GppLinker instance = new GppLinker("gcc", objFiles, |
| discardFiles, "", "", false, null); |
| private static final GppLinker machDllLinker = new GppLinker("gcc", |