hsc-1.0b-cflags.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Index: hsc-1.0/configure.in
  2. ===================================================================
  3. --- hsc-1.0.orig/configure.in
  4. +++ hsc-1.0/configure.in
  5. @@ -46,12 +46,12 @@ case $host in
  6. ;;
  7. esac
  8. echo "Configuring for $SYSTEM"
  9. -CFLAGS="-Wall -pedantic"
  10. +CFLAGS="$CFLAGS -Wall -pedantic"
  11. AC_ARG_ENABLE(debug,
  12. AS_HELP_STRING([--enable-debug],[Compile programs with GDB support and debugging output]),
  13. [CFLAGS="$CFLAGS -ggdb -g3 -DDEBUG"; REGEXDEBUG="regex/printchar.o"],
  14. - CFLAGS="$CFLAGS -fomit-frame-pointer -Os")
  15. + CFLAGS="$CFLAGS")
  16. AC_ARG_ENABLE(efence,
  17. AS_HELP_STRING([--enable-efence],[Link with efence library for memory debugging]),
  18. CFLAGS="$CFLAGS -lefence")
  19. Index: hsc-1.0/src/regex/Makefile.in
  20. ===================================================================
  21. --- hsc-1.0.orig/src/regex/Makefile.in
  22. +++ hsc-1.0/src/regex/Makefile.in
  23. @@ -29,7 +29,7 @@ version = 0.12
  24. CPPFLAGS =
  25. # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
  26. -CFLAGS = -g
  27. +#CFLAGS = -g
  28. # Ditto for LDFLAGS and LOADLIBES.
  29. LDFLAGS =
  30. Index: hsc-1.0/src/Makefile.in
  31. ===================================================================
  32. --- hsc-1.0.orig/src/Makefile.in
  33. +++ hsc-1.0/src/Makefile.in
  34. @@ -27,7 +27,7 @@ DATADIR=@datadir@
  35. CFLAGS = @CFLAGS@ -D@SYSTEM@ -I.
  36. COMP = @CC@ -o $@ $(CFLAGS)
  37. -LINK = @CC@ -o $@ $(CFLAGS)
  38. +LINK = @CC@ -o $@ $(CFLAGS) $(LDFLAGS)
  39. LINKLIBS= @LINKLIBS@
  40. MOVE = mv
  41. COPY = cp