[Asterisk-Users] Help with compilation of app_conference in x86_64

Patrick asterisk at puzzled.xs4all.nl
Mon Jun 5 04:02:13 MST 2006


On Sun, 2006-06-04 at 02:02 -0500, Erick Perez wrote:
[snip]
> CFLAGS = -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
> $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
> #CFLAGS += -O2
> #CFLAGS += -O3 -march=pentium3 -msse -mfpmath=sse,387 -ffast-math
> # PERF: below is 10% faster than -O2 or -O3 alone.
> #CFLAGS += -O3 -ffast-math -funroll-loops
> # below is another 5% faster or so.
> CFLAGS += -O3 -ffast-math -funroll-all-loops -fprefetch-loop-arrays
> -fsingle-precision-constant

Given that this is basically a Red Hat Enterprise Linux box I would
follow the way RH does their rpms:
- remove the -O3 or any other -O settings
- stick $(RPM_OPT_FLAGS) in the CFLAGS line which had the -O3 in it so
  rpm can decide which flags to use

Maybe you need to remove more -f flags. Don't know, my Makefile sourcery
is limited.

Regards,
Patrick




More information about the asterisk-users mailing list