sysklogd-1.5-build.patch 626 B

123456789101112131415161718192021
  1. respect env CC/CFLAGS/CPPFLAGS/LDFLAGS
  2. --- Makefile
  3. +++ Makefile
  4. @@ -17,14 +17,12 @@
  5. # along with this program; if not, write to the Free Software
  6. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  7. -CC= gcc
  8. #SKFLAGS= -g -DSYSV -Wall
  9. #LDFLAGS= -g
  10. -SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
  11. +SKFLAGS= $(CFLAGS) $(CPPFLAGS) -DSYSV -Wall -fno-strength-reduce
  12. # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
  13. # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
  14. # $(shell getconf LFS_SKFLAGS)
  15. -LDFLAGS= -s
  16. # Look where your install program is.
  17. INSTALL = /usr/bin/install