changeset 26048:232cb92a2f1c

Check for -mno-omit-leaf-frame-pointer (compilation fix for icc 10.1.012).
author cehoyos
date Sun, 24 Feb 2008 11:15:30 +0000
parents 9153b0e6ab23
children 0a21dff6b5ef
files configure loader/Makefile
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Feb 23 19:33:02 2008 +0000
+++ b/configure	Sun Feb 24 11:15:30 2008 +0000
@@ -7592,6 +7592,7 @@
   cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
 fi
 
+cc_check -mno-omit-leaf-frame-pointer && CFLAG_NO_OMIT_LEAF_FRAME_POINTER="-mno-omit-leaf-frame-pointer"
 
 #this must be the last test to be performed or the ones following it will likely fail
 #because libdvdnavmini is intentionally not linked against libdvdread (to permit mplayer
@@ -7650,6 +7651,7 @@
 EXTRA_INC = $_inc_extra
 EXTRAXX_INC = $_inc_extra $_inc_extraxx
 OPTFLAGS = $CFLAGS \$(EXTRA_INC)
+CFLAG_NO_OMIT_LEAF_FRAME_POINTER = $CFLAG_NO_OMIT_LEAF_FRAME_POINTER
 CXXFLAGS = $CXXFLAGS \$(EXTRAXX_INC)
 CFLAG_STACKREALIGN = $_stackrealign
 INSTALLSTRIP = $_install_strip
--- a/loader/Makefile	Sat Feb 23 19:33:02 2008 +0000
+++ b/loader/Makefile	Sun Feb 24 11:15:30 2008 +0000
@@ -33,7 +33,7 @@
 
 include ../mpcommon.mak
 
-CFLAGS+=-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
+CFLAGS+=-fno-omit-frame-pointer $(CFLAG_NO_OMIT_LEAF_FRAME_POINTER)
 
 TEST_OBJS    = $(LIBNAME_COMMON) ../cpudetect.o ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a
 TEST_LDFLAGS = -ltermcap -ldl -lm -lpthread -g