Commit 1db54e20 authored by Diego Biurrun's avatar Diego Biurrun

Move gprof compiler flag handling to configure.

Originally committed as revision 5701 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent dea4953d
...@@ -11,11 +11,6 @@ CFLAGS=$(OPTFLAGS) -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \ ...@@ -11,11 +11,6 @@ CFLAGS=$(OPTFLAGS) -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
LDFLAGS+= -g LDFLAGS+= -g
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p
LDFLAGS+=-p
endif
MANPAGES=doc/ffmpeg.1 MANPAGES=doc/ffmpeg.1
PROGS_G+=ffmpeg_g$(EXESUF) PROGS_G+=ffmpeg_g$(EXESUF)
PROGS+=ffmpeg$(EXESUF) PROGS+=ffmpeg$(EXESUF)
......
...@@ -5,11 +5,6 @@ ...@@ -5,11 +5,6 @@
SRC_DIR = $(SRC_PATH)/lib$(NAME) SRC_DIR = $(SRC_PATH)/lib$(NAME)
VPATH = $(SRC_DIR) VPATH = $(SRC_DIR)
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p
LDFLAGS+=-p
endif
SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) $(CPPOBJS:.o=.cpp) SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) $(CPPOBJS:.o=.cpp)
OBJS := $(OBJS) $(ASM_OBJS) $(CPPOBJS) OBJS := $(OBJS) $(ASM_OBJS) $(CPPOBJS)
STATIC_OBJS := $(OBJS) $(STATIC_OBJS) STATIC_OBJS := $(OBJS) $(STATIC_OBJS)
......
...@@ -1448,6 +1448,11 @@ if test "$lshared" = "yes" ; then ...@@ -1448,6 +1448,11 @@ if test "$lshared" = "yes" ; then
fi fi
fi fi
if test "$gprof" = "yes" ; then
CFLAGS="$CFLAGS -p"
LDFLAGS="$LDFLAGS -p"
fi
if test x"$bindir" = x""; then if test x"$bindir" = x""; then
bindir="${prefix}/bin" bindir="${prefix}/bin"
fi fi
...@@ -1680,7 +1685,6 @@ if test "$altivec" = "yes" ; then ...@@ -1680,7 +1685,6 @@ if test "$altivec" = "yes" ; then
fi fi
fi fi
if test "$gprof" = "yes" ; then if test "$gprof" = "yes" ; then
echo "TARGET_GPROF=yes" >> config.mak
echo "#define HAVE_GPROF 1" >> $TMPH echo "#define HAVE_GPROF 1" >> $TMPH
fi fi
if test "$localtime_r" = "yes" ; then if test "$localtime_r" = "yes" ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment