ldopts.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Index: iptraf-3.0.0/src/Makefile
  2. ===================================================================
  3. --- iptraf-3.0.0.orig/src/Makefile
  4. +++ iptraf-3.0.0/src/Makefile
  5. @@ -5,7 +5,7 @@
  6. #
  7. # Architecture determination string borrowed from the kernel makefile.
  8. #
  9. -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
  10. +ARCH ?= $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
  11. -e s/arm.*/arm/ -e s/sa110/arm/)
  12. PLATFORM = -DPLATFORM=\"$(shell uname -s)/$(ARCH)\"
  13. VERNUMBER := $(shell cat version)
  14. @@ -17,7 +17,7 @@ VERSION = -DVERSION=\"$(VERNUMBER)\"
  15. #
  16. BINDIR = ../../iptraf-$(VERNUMBER).bin.$(ARCH)
  17. -CC = gcc
  18. +CC = $(CC)
  19. LIBS = -L../support -ltextbox -lpanel -lncurses # in this order!
  20. # comment this one out to omit debug code when done.
  21. @@ -31,10 +31,10 @@ PROF = #-pg
  22. # options to be passed to the compiler. I don't believe they need to be
  23. # modified (except for -m486 on non-Intel x86 platforms).
  24. -CFLAGS = -Wall #-O2 #-m486
  25. +CFLAGS ?= -Wall #-O2 #-m486
  26. DIRS = -DWORKDIR=\"$(WORKDIR)\" \
  27. -DLOGDIR=\"$(LOGDIR)\" -DEXECDIR=\"$(TARGET)\"
  28. -LDOPTS = #-static
  29. +LDOPTS ?= #-static
  30. # you may want to change this to point to your ncurses include directory
  31. # if the ncurses include files are not in the default location.