Mercurial > sdl-ios-xcode
comparison configure.in @ 5114:39772ccf7ddd
This patch fixes the issue of configure generating broken Makefile
when .cc files are used due to bad sed substitution on multiple passes:
$(objects)/SDL_BeApp.lo:
$(objects)/SDL_BeApp.lo: ./src/main/beos/SDL_BeApp.c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
Signed-off-by: François Revol
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Jan 2011 14:54:20 -0800 |
parents | 797b37c0c046 |
children | e594f07297a9 |
comparison
equal
deleted
inserted
replaced
5113:481dabb098ef | 5114:39772ccf7ddd |
---|---|
2710 if test x$SDLMAIN_SOURCES = x; then | 2710 if test x$SDLMAIN_SOURCES = x; then |
2711 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" | 2711 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" |
2712 fi | 2712 fi |
2713 | 2713 |
2714 OBJECTS=`echo $SOURCES` | 2714 OBJECTS=`echo $SOURCES` |
2715 DEPENDS=`echo $SOURCES` | 2715 DEPENDS=`echo $SOURCES | tr ' ' '\n'` |
2716 for EXT in asm cc m c S; do | 2716 for EXT in asm cc m c S; do |
2717 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` | 2717 OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.'$EXT',$(objects)/\1.lo,g'` |
2718 DEPENDS=`echo "$DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT,\\\\ | 2718 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.$EXT\\$,\\\\ |
2719 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\ | 2719 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\ |
2720 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` | 2720 \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` |
2721 done | 2721 done |
2722 DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'` | 2722 DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'` |
2723 | 2723 |