Commit 65d1bea2 authored by Michel Bardiaux's avatar Michel Bardiaux Committed by Michael Niedermayer

Help debugging by keeping symbols ans line numbers patch by (Michel Bardiaux...

Help debugging by keeping symbols ans line numbers patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

Originally committed as revision 3545 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 71c32f19
...@@ -130,7 +130,7 @@ install: all install-man $(INSTALLVHOOK) ...@@ -130,7 +130,7 @@ install: all install-man $(INSTALLVHOOK)
$(MAKE) -C libavcodec install $(MAKE) -C libavcodec install
$(MAKE) -C libavformat install $(MAKE) -C libavformat install
install -d "$(bindir)" install -d "$(bindir)"
install -c -s -m 755 $(PROG) "$(bindir)" install -c $(INSTALLSTRIP) -m 755 $(PROG) "$(bindir)"
# create the window installer # create the window installer
wininstaller: all install wininstaller: all install
......
...@@ -65,6 +65,7 @@ echo " --disable-ffplay disable ffplay build" ...@@ -65,6 +65,7 @@ echo " --disable-ffplay disable ffplay build"
echo " --disable-risky disables patent encumbered codecs" echo " --disable-risky disables patent encumbered codecs"
echo " --enable-small optimize for size instead of speed" echo " --enable-small optimize for size instead of speed"
echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers" echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers"
echo " --disable-strip disable stripping of executables and shared libraries"
echo "" echo ""
echo "NOTE: The object files are build at the place where configure is launched" echo "NOTE: The object files are build at the place where configure is launched"
exit 1 exit 1
...@@ -155,6 +156,7 @@ os2="no" ...@@ -155,6 +156,7 @@ os2="no"
lshared="no" lshared="no"
optimize="yes" optimize="yes"
debug="yes" debug="yes"
dostrip="yes"
extralibs="-lm" extralibs="-lm"
simpleidct="yes" simpleidct="yes"
bigendian="no" bigendian="no"
...@@ -439,6 +441,8 @@ for opt do ...@@ -439,6 +441,8 @@ for opt do
;; ;;
--enable-memalign-hack) memalignhack="yes" --enable-memalign-hack) memalignhack="yes"
;; ;;
--disable-strip) dostrip="no"
;;
esac esac
done done
...@@ -1004,6 +1008,7 @@ echo "a52 dlopened $a52bin" ...@@ -1004,6 +1008,7 @@ echo "a52 dlopened $a52bin"
echo "dts support $dts" echo "dts support $dts"
echo "pp support $pp" echo "pp support $pp"
echo "debug symbols $debug" echo "debug symbols $debug"
echo "strip symbols $dostrip"
echo "optimize $optimize" echo "optimize $optimize"
echo "shared pp $shared_pp" echo "shared pp $shared_pp"
echo "Video hooking $vhook" echo "Video hooking $vhook"
...@@ -1040,7 +1045,13 @@ echo "MAKE=$make" >> config.mak ...@@ -1040,7 +1045,13 @@ echo "MAKE=$make" >> config.mak
echo "CC=$cc" >> config.mak echo "CC=$cc" >> config.mak
echo "AR=$ar" >> config.mak echo "AR=$ar" >> config.mak
echo "RANLIB=$ranlib" >> config.mak echo "RANLIB=$ranlib" >> config.mak
if test "$dostrip" = "yes" ; then
echo "STRIP=$strip" >> config.mak echo "STRIP=$strip" >> config.mak
echo "INSTALLSTRIP=-s" >> config.mak
else
echo "STRIP=echo ignoring strip" >> config.mak
echo "INSTALLSTRIP=" >> config.mak
fi
# SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic. Used when building # SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic. Used when building
# shared modules on OS/X (vhook/Makefile). # shared modules on OS/X (vhook/Makefile).
......
...@@ -280,10 +280,10 @@ fft-test: fft-test.o $(LIB) ...@@ -280,10 +280,10 @@ fft-test: fft-test.o $(LIB)
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
install: all install-headers install: all install-headers
ifeq ($(CONFIG_WIN32),yes) ifeq ($(CONFIG_WIN32),yes)
install -s -m 755 $(SLIB) "$(prefix)" install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
else else
install -d $(prefix)/lib install -d $(prefix)/lib
install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
ldconfig || true ldconfig || true
endif endif
......
...@@ -102,10 +102,10 @@ depend: $(SRCS) ...@@ -102,10 +102,10 @@ depend: $(SRCS)
ifeq ($(BUILD_SHARED),yes) ifeq ($(BUILD_SHARED),yes)
install: all install-headers install: all install-headers
ifeq ($(CONFIG_WIN32),yes) ifeq ($(CONFIG_WIN32),yes)
install -s -m 755 $(SLIB) "$(prefix)" install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
else else
install -d $(prefix)/lib install -d $(prefix)/lib
install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so
ldconfig || true ldconfig || true
endif endif
......
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