Add -faligned-new to CXXFLAGS when available to compile dyninst 10.1 code

Fedora 30 and 31 have Dyninst 10.1.  The code added to dyninst
by commit a00056bec6a0265afb592944dde2ff461b525e8d makes some data
structures cache aligned (128 bytes).  The c++ compiler ends up flagging that
as an error:

  CXX      stap-analysis.o
/notnfs/smakarov/stap-checkout/analysis.cxx: In constructor ‘analysis::analysis(std::string)’:
/notnfs/smakarov/stap-checkout/analysis.cxx:59:37: error: ‘new’ of type ‘Dyninst::ParseAPI::SymtabCodeSource’ with extended alignment 128 [-Werror=aligned-new=]
   59 |  sts = new SymtabCodeSource(name_str);
      |                                     ^
/notnfs/smakarov/stap-checkout/analysis.cxx:59:37: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/notnfs/smakarov/stap-checkout/analysis.cxx:59:37: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:1724: stap-analysis.o] Error 1

To make the compiler happy adding a -faligned-new option to the
CXXFLAGS when it is available.  This issue does not affect later
releases of dyninst as the problem code was removed from dyninst in
git commit d233ae7596cd74201d634c2f0f7d7a0e3d628e79.
17 files changed
tree: 0eba0e0ddea3873539342139ca0294e996288100
  1. doc/
  2. emacs/
  3. httpd/
  4. includes/
  5. initscript/
  6. java/
  7. m4/
  8. man/
  9. po/
  10. python/
  11. runtime/
  12. scripts/
  13. stap-exporter/
  14. stapbpf/
  15. stapdyn/
  16. staprun/
  17. tapset/
  18. testsuite/
  19. vim/
  20. .gitignore
  21. .mailmap
  22. ABOUT-NLS
  23. aclocal.m4
  24. analysis.cxx
  25. analysis.h
  26. ar-lib
  27. AUTHORS
  28. AUTHORS.sh
  29. bpf-base.cxx
  30. bpf-bitset.cxx
  31. bpf-bitset.h
  32. bpf-internal.h
  33. bpf-opt.cxx
  34. bpf-shared-globals.h
  35. bpf-translate.cxx
  36. bpf.h
  37. buildrun.cxx
  38. buildrun.h
  39. cache.cxx
  40. cache.h
  41. client-http.cxx
  42. client-http.h
  43. client-nss.cxx
  44. client-nss.h
  45. cmdline.cxx
  46. cmdline.h
  47. compile
  48. config.guess
  49. config.in
  50. config.rpath
  51. config.sub
  52. configure
  53. configure.ac
  54. COPYING
  55. coveragedb.cxx
  56. coveragedb.h
  57. csclient.cxx
  58. csclient.h
  59. cscommon.cxx
  60. cscommon.h
  61. depcomp
  62. dtrace.in
  63. dwarf_wrappers.cxx
  64. dwarf_wrappers.h
  65. dwflpp.cxx
  66. dwflpp.h
  67. elaborate.cxx
  68. elaborate.h
  69. git_version.sh
  70. HACKING
  71. hash.cxx
  72. hash.h
  73. INSTALL
  74. install-sh
  75. interactive.cxx
  76. interactive.h
  77. INTERNALS
  78. loc2stap.cxx
  79. loc2stap.h
  80. macros.systemtap.in
  81. main.cxx
  82. Makefile.am
  83. Makefile.in
  84. mdfour.c
  85. mdfour.h
  86. missing
  87. NEWS
  88. nss-server-info.cxx
  89. nss-server-info.h
  90. nsscommon.cxx
  91. nsscommon.h
  92. parse.cxx
  93. parse.h
  94. privilege.cxx
  95. privilege.h
  96. py-compile
  97. README
  98. README.security
  99. README.stapregex
  100. README.unprivileged
  101. remote.cxx
  102. remote.h
  103. rpm_finder.cxx
  104. rpm_finder.h
  105. run-stap.in
  106. runtest.sh
  107. sdt_types.h
  108. session.cxx
  109. session.h
  110. setupdwfl.cxx
  111. setupdwfl.h
  112. smileytap.svg
  113. stap-authorize-cert.cxx
  114. stap-env
  115. stap-gen-cert.cxx
  116. stap-prep
  117. stap-report
  118. stap-server
  119. stap-server.conf
  120. stap-server.service
  121. stap-serverd.cxx
  122. stap-sign-module.cxx
  123. stap-start-server
  124. stap-stop-server
  125. staplog.c
  126. stapregex-defines.h
  127. stapregex-dfa.cxx
  128. stapregex-dfa.h
  129. stapregex-parse.cxx
  130. stapregex-parse.h
  131. stapregex-tree.cxx
  132. stapregex-tree.h
  133. stapregex.cxx
  134. stapregex.h
  135. stapsslerr.h
  136. staptree.cxx
  137. staptree.h
  138. stapvirt.c
  139. stringtable.cxx
  140. stringtable.h
  141. systemtap-runtime.sysusers
  142. systemtap-server.sysusers
  143. systemtap-testsuite.sysusers
  144. systemtap.spec
  145. tapset-been.cxx
  146. tapset-dynprobe.cxx
  147. tapset-dynprobe.h
  148. tapset-itrace.cxx
  149. tapset-mark.cxx
  150. tapset-method.cxx
  151. tapset-netfilter.cxx
  152. tapset-perfmon.cxx
  153. tapset-procfs.cxx
  154. tapset-python.cxx
  155. tapset-timers.cxx
  156. tapset-utrace.cxx
  157. tapsets.cxx
  158. tapsets.h
  159. task_finder.cxx
  160. task_finder.h
  161. translate.cxx
  162. translate.h
  163. translator-output.cxx
  164. translator-output.h
  165. util.cxx
  166. util.h
  167. version.h
  168. zanata.xml