Ticket #8744: reconfigure3.patch
File reconfigure3.patch, 1.8 KB (added by , 17 years ago) |
---|
-
configure
9 9 # * detect whether the chosen backend is available (e.g. call sdl-config) 10 10 # * .... 11 11 12 # Save the current environment variables for next runs 13 SAVED_CONFIGFLAGS=$@ 14 SAVED_LDFLAGS=$LDFLAGS 15 SAVED_CXX=$CXX 16 SAVED_CXXFLAGS=$CXXFLAGS 17 SAVED_CPPFLAGS=$CPPFLAGS 12 18 13 19 # use environment vars if set 14 20 CXXFLAGS="$CXXFLAGS $CPPFLAGS" … … 1625 1631 OBJS += $OBJS 1626 1632 DEFINES += $DEFINES 1627 1633 LDFLAGS += $LDFLAGS 1634 1635 SAVED_CONFIGFLAGS := $SAVED_CONFIGFLAGS 1636 SAVED_LDFLAGS := $SAVED_LDFLAGS 1637 SAVED_CXX := $SAVED_CXX 1638 SAVED_CXXFLAGS := $SAVED_CXXFLAGS 1639 SAVED_CPPFLAGS := $SAVED_CPPFLAGS 1640 1641 CONFIG_MAK_IS_PRESENT := 1 1628 1642 EOF 1629 1643 1630 1644 # -
Makefile
16 16 MODULE_DIRS := 17 17 18 18 # Load the make rules generated by configure 19 include config.mk19 -include config.mk 20 20 21 21 CXXFLAGS:= -Wall $(CXXFLAGS) 22 22 CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas … … 44 44 45 45 # check if configure has been run or has been changed since last run 46 46 config.mk: $(srcdir)/configure 47 @echo "You need to run ./configure before you can run make" 48 @echo "Either you haven't run it before or it has changed." 49 @exit 1 47 ifdef CONFIG_MAK_IS_PRESENT 48 @echo "Running $(srcdir)/configure with the last specified parameters" 49 @sleep 2s 50 @LDFLAGS=$(SAVED_LDFLAGS) CXX=$(SAVED_CXX) CXXFLAGS=$(SAVED_CXXFLAGS) CPPFLAGS=$(SAVED_CPPFLAGS) \ 51 $(srcdir)/configure $(SAVED_CONFIGFLAGS) 52 else 53 $(error You need to run $(srcdir)/configure before you can run make. Check $(srcdir)/configure --help for a list of parameters) 54 endif 50 55 51 56 install: all 52 57 $(INSTALL) -d "$(DESTDIR)$(BINDIR)"