tests: Add required flags to the stack tests
commit6a7a14a04ace6cc9d9e6f3a31c8c055488cbaec6
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sat, 15 Aug 2015 21:16:37 +0000 (15 22:16 +0100)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 16 Aug 2015 11:21:22 +0000 (16 12:21 +0100)
tree680874a0433ec7364e9bff730b196dddc20e75f1
parentc4ea63fd1684be407c9df9a76c020d0a3961a473
tests: Add required flags to the stack tests

Tests that use the stack need special build flags, as some common
optimizations can cause them to fail.

-rdynamic: Adds all symbols to the dynamic symbol table. This option is needed
   for backtrace() to work properly.

-fno-optimize-sibling-calls: This optimization can turn some calls into direct
   jumps, which leaves caller information out of the stack frame and makes
   functions not appear in the backtrace.
   We disable it inconditionally. It's only enabled at -O2 and above, which
   some users may pass.

This patch adds those flags only to the stack tests.

It also avoids generating the intermediate .o because they're not particularly
useful.
tests/Makefile