[MPlayer-cvslog] r38109 - trunk/configure

reimar subversion at mplayerhq.hu
Sun May 6 23:08:10 EEST 2018


Author: reimar
Date: Sun May  6 23:08:10 2018
New Revision: 38109

Log:
Use thin .a files if possible.

Instead of copying all .o files, the .a file
just has the symbol index and references to the
.o files in thin mode.
As we never install the .a files anywhere, that
makes more sense for us, reducing disk usage
and I/O requirements when building.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sun May  6 20:12:31 2018	(r38108)
+++ trunk/configure	Sun May  6 23:08:10 2018	(r38109)
@@ -652,6 +652,9 @@ _ranlib=ranlib
 _windres=windres
 _cc=cc
 _ar=ar
+_arflags=rc
+# create thin archive to save disk space and I/O
+$_ar 2>&1 | grep -q "\[T\] " && _arflags=rcT
 test "$CC" && _cc="$CC"
 _as=auto
 _nm=auto
@@ -8375,7 +8378,7 @@ MANDIR  = \$(DESTDIR)$_mandir
 CONFDIR = \$(DESTDIR)$_confdir
 
 AR      = $_ar
-ARFLAGS = rc
+ARFLAGS = $_arflags
 AR_O    = \$@
 AS      = $_cc
 CC      = $_cc


More information about the MPlayer-cvslog mailing list