This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] compile libgomp.c++/pr30703.C with -shared-libgcc


On 3/15/07, Mike Stump <mrs@apple.com> wrote:

The idea is to put the fix next to the thing that is broken, that way it is impossible for another case to break. Someone want to agree with my patch and reasoning?

This version is better but it will not work on targets that don't have shared libgcc's. Can I suggest what is included in the libjava jni testsuite: # If you're building the compiler with --prefix set to a place # where it's not yet installed, then the linker won't be able to # find the libgcc used by libffi.dylib. We could pass the # -dylib_file option, but that's complicated, and it's much easier # to just make the linker find libgcc using -L options. if { [istarget "*-*-darwin*"] } { lappend cxxflaglist "-shared-libgcc -lstdc++" } else { lappend cxxflaglist "-lstdc++" }


Thanks, Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]