Ad Widget

Collapse

gcc flags under linux (1.1alpha6)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naparuba
    Junior Member
    • Feb 2005
    • 11

    #1

    gcc flags under linux (1.1alpha6)

    Hi,

    How the flags for gcc are make for the Makefile under linux for the 1.1alpha6? I make a configure and after there is:
    all:
    gcc -o ../../bin/zabbix_server -g -O2 ....

    Why put -O2 near -g ? Why not just -O3 ? (I don't really want to make a gdb zabbix_server )

    My environement variable CFLAGS is void.

    Thanks

    EDIT:
    In fact, when CLFAGS is void, configure set the flags to -g -O2, but it can be
    avoid by export CFLAGS=`-pipe -march=pentium4 -msse2' for example
    Last edited by naparuba; 03-03-2005, 15:00.
Working...