Set the tag type in libtool invocations
authorSteven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
Sat, 19 Apr 2014 16:33:42 -0700
changeset 87434f1fc737b017
parent 8742 7a261af2d612
child 8744 8c0fafc6b438
Set the tag type in libtool invocations

Setting the tag type will let libtool work even when it cannot infer
the type of the code being built. One way libtool may fail to infer
the tag type is if one uses a mock compiler (such as for static
analysis).
Makefile.in
configure.in
     1.1 --- a/Makefile.in	Sat Apr 26 12:38:35 2014 -0700
     1.2 +++ b/Makefile.in	Sat Apr 19 16:33:42 2014 -0700
     1.3 @@ -123,7 +123,7 @@
     1.4  .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
     1.5  
     1.6  $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
     1.7 -	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
     1.8 +	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
     1.9  
    1.10  $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    1.11  	$(AR) cru $@ $(SDLMAIN_OBJECTS)
     2.1 --- a/configure.in	Sat Apr 26 12:38:35 2014 -0700
     2.2 +++ b/configure.in	Sat Apr 19 16:33:42 2014 -0700
     2.3 @@ -3165,7 +3165,7 @@
     2.4      OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'`
     2.5      DEPENDS=`echo "$DEPENDS" | sed "s,^\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT\\$,\\\\
     2.6  \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
     2.7 -	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     2.8 +	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
     2.9  done
    2.10  
    2.11  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    2.12 @@ -3180,14 +3180,14 @@
    2.13  SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
    2.14  SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    2.15  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    2.16 -	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.17 +	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.18  
    2.19  SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
    2.20  SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
    2.21  SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'`
    2.22  SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.c,\\\\
    2.23  \\$(objects)/\\2.o: \\1/\\2.c\\\\
    2.24 -	\\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.25 +	\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
    2.26  
    2.27  # Set runtime shared library paths as needed
    2.28