0001-cross.patch 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. diff --git a/Makefile b/Makefile
  2. index 9754ddf..b5512de 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -15,16 +15,16 @@
  6. SHELL=/bin/sh
  7. # To assist in cross-compiling
  8. -CC=gcc
  9. -AR=ar
  10. -RANLIB=ranlib
  11. -LDFLAGS=
  12. +CC?=gcc
  13. +AR?=ar
  14. +RANLIB?=ranlib
  15. BIGFILES=-D_FILE_OFFSET_BITS=64
  16. -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
  17. +CFLAGS?=-Wall -Winline -O2 -g
  18. +CFLAGS=$(CFLAGS) $(BIGFILES)
  19. # Where you want it installed when you do 'make install'
  20. -PREFIX=/usr/local
  21. +PREFIX=$PREFIX
  22. OBJS= blocksort.o \
  23. diff --git a/Makefile-libbz2_so b/Makefile-libbz2_so
  24. index e58791b..f4b9fa2 100644
  25. --- a/Makefile-libbz2_so
  26. +++ b/Makefile-libbz2_so
  27. @@ -22,9 +22,18 @@
  28. SHELL=/bin/sh
  29. -CC=gcc
  30. +
  31. +# To assist in cross-compiling
  32. +CC?=gcc
  33. +AR?=ar
  34. +RANLIB?=ranlib
  35. +
  36. BIGFILES=-D_FILE_OFFSET_BITS=64
  37. -CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
  38. +CFLAGS?=-Wall -Winline -O2 -g
  39. +CFLAGS=$(CFLAGS) $(BIGFILES)
  40. +
  41. +# Where you want it installed when you do 'make install'
  42. +PREFIX=$PREFIX
  43. OBJS= blocksort.o \
  44. huffman.o \