0001-dont-unset-cflags.patch 1015 B

123456789101112131415161718192021222324252627282930
  1. --- git.old/Makefile 2012-04-17 13:29:46.280435340 +0200
  2. +++ git/Makefile 2012-04-17 13:31:13.664433470 +0200
  3. @@ -77,17 +77,7 @@ INSTALL_PROGRAM = ${INSTALL}
  4. INSTALL_DATA = ${INSTALL} -m 644
  5. INSTALL_SCRIPT = ${INSTALL_PROGRAM}
  6. -# If you are running a cross compiler, you may want to set this
  7. -# to something more interesting, like "arm-linux-". If you want
  8. -# to compile vs uClibc, that can be done here as well.
  9. -CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
  10. -CC = $(CROSS)gcc
  11. -LD = $(CROSS)gcc
  12. -AR = $(CROSS)ar
  13. -STRIP = $(CROSS)strip
  14. -RANLIB = $(CROSS)ranlib
  15. -HOSTCC = gcc
  16. -
  17. +HOSTCC = $(BUILD_CC)
  18. # Now we set up the build system
  19. #
  20. @@ -95,7 +85,7 @@ HOSTCC = gcc
  21. # set up PWD so that older versions of make will work with our build.
  22. PWD = $(shell pwd)
  23. -export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS
  24. +export CFLAGS LDFLAGS LIB_OBJS
  25. # check if compiler option is supported
  26. cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;}