1
mirror of https://github.com/mpv-player/mpv synced 2024-10-02 16:25:33 +02:00

avoids stripping the binary at install if debugging or profiling is enabled

(original patch by Balazs Tibor <tibcu@sch.bme.hu> - edited for simplicity)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6241 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2002-05-30 14:26:35 +00:00
parent dbd92f86ed
commit 27e3edb07a
2 changed files with 14 additions and 4 deletions

View File

@ -11,6 +11,12 @@ PRG_FIBMAP = fibmap_mplayer
PRG_CFG = codec-cfg PRG_CFG = codec-cfg
PRG_MENCODER = mencoder PRG_MENCODER = mencoder
# Do not strip the binaries at installation
ifeq ($(STRIPBINARIES),yes)
INSTALLSTRIP = -s
endif
# these subdirectories required installation due binaries within them # these subdirectories required installation due binaries within them
ifeq ($(VIDIX),yes) ifeq ($(VIDIX),yes)
SUBDIRS += libdha vidix SUBDIRS += libdha vidix
@ -221,14 +227,14 @@ ifeq ($(VIDIX),yes)
$(DO_MAKE) $(DO_MAKE)
endif endif
if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi
$(INSTALL) -m 755 -s $(PRG) $(BINDIR)/$(PRG) $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG)
ifeq ($(GUI),yes) ifeq ($(GUI),yes)
-ln -sf $(PRG) $(BINDIR)/gmplayer -ln -sf $(PRG) $(BINDIR)/gmplayer
endif endif
if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1 $(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
ifeq ($(MENCODER),yes) ifeq ($(MENCODER),yes)
$(INSTALL) -m 755 -s $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
-ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1 -ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1
endif endif
@if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
@ -249,7 +255,7 @@ endif
ifeq ($(DVDKIT),yes) ifeq ($(DVDKIT),yes)
ifeq ($(DVDKIT_SHARED),yes) ifeq ($(DVDKIT_SHARED),yes)
if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi
$(INSTALL) -m 755 -s libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so
endif endif
endif endif
ifeq ($(CSS_USE),yes) ifeq ($(CSS_USE),yes)
@ -257,7 +263,7 @@ ifeq ($(CSS_USE),yes)
@echo "however it means you can't use fibmap_mplayer." @echo "however it means you can't use fibmap_mplayer."
@echo "Without this (or without running mplayer as root) you won't be" @echo "Without this (or without running mplayer as root) you won't be"
@echo "able to play encrypted DVDs." @echo "able to play encrypted DVDs."
-$(INSTALL) -o 0 -g 0 -m 4755 -s $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP) -$(INSTALL) -o 0 -g 0 -m 4755 $(INSTALLSTRIP) $(PRG_FIBMAP) $(BINDIR)/$(PRG_FIBMAP)
endif endif
uninstall: uninstall:

4
configure vendored
View File

@ -3639,8 +3639,10 @@ fi
############################################################################# #############################################################################
# Checking for CFLAGS # Checking for CFLAGS
_stripbinaries=yes
if test "$_profile" || test "$_debug" ; then if test "$_profile" || test "$_debug" ; then
CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
_stripbinaries=no
elif test -z "$CFLAGS" ; then elif test -z "$CFLAGS" ; then
if test "$host_arch" != "mips" ; then if test "$host_arch" != "mips" ; then
CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer" CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
@ -3650,6 +3652,7 @@ elif test -z "$CFLAGS" ; then
# always compile with '-g' if .developer: # always compile with '-g' if .developer:
if test -f ".developer" ; then if test -f ".developer" ; then
CFLAGS="-g $CFLAGS" CFLAGS="-g $CFLAGS"
_stripbinaries=no
fi fi
else else
cat <<EOF cat <<EOF
@ -3796,6 +3799,7 @@ AWK = $_awk
OPTFLAGS = $CFLAGS OPTFLAGS = $CFLAGS
EXTRA_INC = $_inc_extra $_inc_gtk EXTRA_INC = $_inc_extra $_inc_gtk
WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\"
STRIPBINARIES = $_stripbinaries
STREAMING = $_streaming STREAMING = $_streaming
STREAMING_LIB = $_ld_streaming STREAMING_LIB = $_ld_streaming