[FFmpeg-cvslog] r19409 - in trunk: common.mak configure

mru subversion
Sun Jul 12 15:29:46 CEST 2009


Author: mru
Date: Sun Jul 12 15:29:46 2009
New Revision: 19409

Log:
Allow unusual ways of specifying compiler output file

Some compilers do not use the typical -c -o foo.o style.
This allows compiler-specific equivalents to be set by the
configure script.

Modified:
   trunk/common.mak
   trunk/configure

Modified: trunk/common.mak
==============================================================================
--- trunk/common.mak	Sun Jul 12 15:29:43 2009	(r19408)
+++ trunk/common.mak	Sun Jul 12 15:29:46 2009	(r19409)
@@ -21,7 +21,7 @@ ALLFFLIBS = avcodec avdevice avfilter av
 CPPFLAGS += -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH)
 
 %.o: %.c
-	$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c $(CC_O) $<
 
 %.o: %.S
 	$(AS) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sun Jul 12 15:29:43 2009	(r19408)
+++ trunk/configure	Sun Jul 12 15:29:46 2009	(r19409)
@@ -1263,6 +1263,8 @@ SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIB
 SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
 LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
 
+CC_O='-o $@'
+
 host_cflags='-O3 -g -Wall'
 host_libs='-lm'
 
@@ -2493,6 +2495,7 @@ enabled stripping &&
 
 echo "CPPFLAGS?=$CPPFLAGS" >> config.mak
 echo "CFLAGS=$CFLAGS" >> config.mak
+echo "CC_O=$CC_O" >> config.mak
 echo "LDFLAGS=$LDFLAGS" >> config.mak
 echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak
 echo "SHFLAGS=$SHFLAGS" >> config.mak



More information about the ffmpeg-cvslog mailing list