[Mplayer-cvslog] CVS: main Makefile,1.189,1.190 configure,1.486,1.487

pl pl at mplayerhq.hu
Thu May 30 16:26:38 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv10383

Modified Files:
	Makefile configure 
Log Message:
avoids stripping the binary at install if debugging or profiling is enabled
(original patch by Balazs Tibor <tibcu at sch.bme.hu> - edited for simplicity)


Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -r1.189 -r1.190
--- Makefile	28 May 2002 01:52:32 -0000	1.189
+++ Makefile	30 May 2002 14:26:35 -0000	1.190
@@ -11,6 +11,12 @@
 PRG_CFG = codec-cfg
 PRG_MENCODER = mencoder
 
+# Do not strip the binaries at installation
+ifeq ($(STRIPBINARIES),yes)
+INSTALLSTRIP = -s
+endif
+
+
 # these subdirectories required installation due binaries within them
 ifeq ($(VIDIX),yes)
 SUBDIRS += libdha vidix
@@ -221,14 +227,14 @@
 	$(DO_MAKE)
 endif
 	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)
 	-ln -sf $(PRG) $(BINDIR)/gmplayer
 endif
 	if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
 	$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
 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
 endif
 	@if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
@@ -249,7 +255,7 @@
 ifeq ($(DVDKIT),yes)
 ifeq ($(DVDKIT_SHARED),yes)
 	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
 ifeq ($(CSS_USE),yes)
@@ -257,7 +263,7 @@
 	@echo "however it means you can't use fibmap_mplayer."
 	@echo "Without this (or without running mplayer as root) you won't be"
 	@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
 
 uninstall:

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.486
retrieving revision 1.487
diff -u -r1.486 -r1.487
--- configure	30 May 2002 11:42:55 -0000	1.486
+++ configure	30 May 2002 14:26:35 -0000	1.487
@@ -3639,8 +3639,10 @@
 #############################################################################
 
 # Checking for CFLAGS
+_stripbinaries=yes
 if test "$_profile" || test "$_debug" ; then
   CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
+  _stripbinaries=no
 elif test -z "$CFLAGS" ; then
   if test "$host_arch" != "mips" ; then
     CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
@@ -3650,6 +3652,7 @@
   # always compile with '-g' if .developer:
   if test -f ".developer" ; then
     CFLAGS="-g $CFLAGS"
+    _stripbinaries=no
   fi
 else
   cat <<EOF
@@ -3796,6 +3799,7 @@
 OPTFLAGS = $CFLAGS
 EXTRA_INC = $_inc_extra $_inc_gtk
 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\"
+STRIPBINARIES = $_stripbinaries
 
 STREAMING = $_streaming
 STREAMING_LIB = $_ld_streaming




More information about the MPlayer-cvslog mailing list