Re: How to disable GCC optimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 11, 2013 at 11:54 AM, pramod.peddyreddy
<pramod.peddyreddy@xxxxxxxxx> wrote:
> I checked, I am linking the file into executable.
>
> Linker command:
> g++ -rdynamic -g -Wall -m32 -O0 -Wl,--start-group   rand_hfile.o <lst of
> other files & libs>  -Wl,--end-group -ldl -lpthread -o rand_handler.sct
>
> compiler command:
> gcc -m32 -g -Wall < file and other info>
>
> thanks,
> Pramod.
>
>
>
>
> --
> View this message in context: http://gcc.1065356.n5.nabble.com/How-to-disable-GCC-optimization-tp967456p967473.html
> Sent from the gcc - Help mailing list archive at Nabble.com.

Please note that You could only specify library archives in between
--start-group and --end-group and below are the lines
from man page.

--start-group archives --end-group
           The archives should be a list of archive files.  They may
be either explicit file names, or -l options.

I guess you will have  to remove rand_hfile.o from the archive group.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux