This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC option "-melf64ppc" removed since 4.6, any alternative options?
- From: segher at kernel dot crashing dot org
- To: åè <tzhan dot subscribe at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Apr 2014 15:22:27 -0500
- Subject: Re: GCC option "-melf64ppc" removed since 4.6, any alternative options?
- Authentication-results: sourceware.org; auth=none
- References: <CADdZEQLgSMOmkT7s254d5jhYTA9AYb=6uJinQjYjViQN9EwPEQ at mail dot gmail dot com>
> In one of my project, we used "-melf64ppc" in makefile, but newer GCC
> removed this flag, so will hit compiling errors.
That never was a compiler flag. It is a linker flag and should be
specified as "-Wl,-melf64ppc".
GCC versions before December 2010 wrongly passed all -m options to
the linker.
And indeed you likely can just remove it, it probably is the default
for your toolchain.
Cheers,
Segher