Ticket #8744: reconfigure.patch
File reconfigure.patch, 1.7 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 SAVE_CONFIGFLAGS=$@ 14 SAVE_LDFLAGS=$LDFLAGS 15 SAVE_CXX=$CXX 16 SAVE_CXXFLAGS=$CXXFLAGS 17 SAVE_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 SAVE_CONFIGFLAGS := $SAVE_CONFIGFLAGS 1636 SAVE_LDFLAGS := $SAVE_LDFLAGS 1637 SAVE_CXX := $SAVE_CXX 1638 SAVE_CXXFLAGS := $SAVE_CXXFLAGS 1639 SAVE_CPPFLAGS := $SAVE_CPPFLAGS 1628 1640 EOF 1629 1641 1630 1642 # -
Makefile
16 16 MODULE_DIRS := 17 17 18 18 # Load the make rules generated by configure 19 include config.mk19 sinclude 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 @echo "Running $(srcdir)/configure with the last specified parameters" 48 @echo "or if you didn't run it yet with, no parameters, check" 49 @echo "$(srcdir)/configure --help for a list of parameters." 50 @sleep 2s 51 @LDFLAGS=$(SAVE_LDFLAGS) CXX=$(SAVE_CXX) CXXFLAGS=$(SAVE_CXXFLAGS) CPPFLAGS=$(SAVE_CPPFLAGS) \ 52 $(srcdir)/configure $(SAVE_CONFIGFLAGS) 50 53 51 54 install: all 52 55 $(INSTALL) -d "$(DESTDIR)$(BINDIR)"