buildflags.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- aufs-util-4.0_p20151116.orig/Makefile 2015-11-12 05:29:36.000000000 +0200
  2. +++ aufs-util-4.0_p20151116/Makefile 2016-06-18 02:13:42.598522963 +0300
  3. @@ -19,7 +19,7 @@
  4. override CPPFLAGS += -D_GNU_SOURCE
  5. override CPPFLAGS += -I./libau
  6. override CPPFLAGS += -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
  7. -override CFLAGS += -O -Wall
  8. +override CFLAGS += -Wall
  9. INSTALL ?= install
  10. Install = ${INSTALL} -o root -g root -p
  11. ManDir = /usr/share/man
  12. @@ -76,7 +76,6 @@
  13. ver_test: ver
  14. ./ver
  15. -${Bin}: override LDFLAGS += -static -s
  16. ${Bin}: LDLIBS = -L. -lautil
  17. ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil}
  18. --- aufs-util-4.0_p20151116.orig/fhsm/Makefile 2015-11-12 05:29:36.000000000 +0200
  19. +++ aufs-util-4.0_p20151116/fhsm/Makefile 2016-06-18 02:13:42.601856468 +0300
  20. @@ -42,9 +42,9 @@
  21. .NOTPARALLEL: ${LibFhsm}
  22. ${TgtObj}: %.o: %.c ${LibFhsmHdr} $(addprefix ../, ${LibUtilHdr}) ${LibFhsm}
  23. -#${Tgt}: override LDFLAGS += -static
  24. -${Tgt}: override LDFLAGS += -s
  25. -${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt
  26. +#${Tgt}: override LDFLAGS +=
  27. +${Tgt}: override LDFLAGS +=
  28. +${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt
  29. ########################################
  30. --- aufs-util-4.0_p20151116.orig/libau/Makefile 2015-11-12 05:29:36.000000000 +0200
  31. +++ aufs-util-4.0_p20151116/libau/Makefile 2016-06-18 02:13:42.601856468 +0300
  32. @@ -37,14 +37,14 @@
  33. ln -sf $< $@
  34. ${LibSo}.${LibSoMajor}: ${LibSo}.${LibSoMajor}.${LibSoMinor}
  35. ln -sf $< $@
  36. -${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS += -s
  37. +${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS +=
  38. ${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDLIBS += -ldl -lpthread
  39. ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
  40. ${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} ${LDFLAGS} \
  41. -o $@ $^ ${LDLIBS}
  42. install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
  43. -install_ulib: Tgt = ${DESTDIR}/usr/lib
  44. +install_ulib: Tgt = ${DESTDIR}$(LIBDIR)
  45. install_ulib: ${File}
  46. ${INSTALL} -d ${Tgt}
  47. ${Install} -m 644 ${File} ${Tgt}