OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../embutils/build.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Remove some unusal build system stuff, so that we can build it normally,
  17. linked against any libc ...
  18. - Rene Rebe <rene@exactcode.de>
  19. --- embutils-0.17/Makefile 2005-01-31 19:06:38.000000000 +0100
  20. +++ embutils-0.17-patched/Makefile 2005-02-02 12:54:27.383231704 +0100
  21. @@ -1,9 +1,7 @@
  22. INSTALL=install
  23. -prefix=/opt/diet
  24. +prefix=/usr
  25. # Set the following to install to a different root
  26. #DESTDIR=/tmp/fefix
  27. -# Set the following to use the diet libc
  28. -DIET=diet -Os
  29. FLAGS=
  30. @@ -15,30 +13,26 @@
  31. truncate strings test date mount printenv umount pivot_root insmod rmmod \
  32. lsmod
  33. -ARCH:=$(shell uname -m | sed 's/i[4-9]86/i386/')
  34. -
  35. -OBJDIR:=bin-$(ARCH)
  36. +OBJDIR:=bin
  37. TARGETS=$(patsubst %,$(OBJDIR)/%,$(PRGS))
  38. all: $(OBJDIR) $(TARGETS)
  39. CFLAGS=-pipe -Os -fomit-frame-pointer
  40. -CROSS=
  41. -
  42. #CFLAGS=-pipe -g
  43. $(OBJDIR)/%.o: %.c
  44. - $(DIET) $(CROSS)gcc $(CFLAGS) $(FLAGS) -c $< -o $@
  45. - $(CROSS)strip -x -R .comment -R .note $@
  46. + $(CC) $(CFLAGS) $(FLAGS) -c $< -o $@
  47. + $(STRIP) -x -R .comment -R .note $@
  48. $(OBJDIR)/%.o: %.S
  49. - $(DIET) $(CROSS)gcc -pipe -c $< -o $@
  50. + $(CC) -pipe -c $< -o $@
  51. $(OBJDIR)/%: $(OBJDIR)/%.o
  52. - $(DIET) $(CROSS)gcc -o $@ $^
  53. - $(CROSS)strip -R .note -R .comment $@
  54. + $(CC) -o $@ $^
  55. + $(STRIP) -R .note -R .comment $@
  56. $(OBJDIR)/uniq: $(OBJDIR)/uniq.o $(OBJDIR)/fmt_ulongpadright.o $(OBJDIR)/fmt_ulong.o