Add custom, per-module cflags for LTP

testcases/kernel/syscalls/getcwd/getcwd02 passes a purposefully invalid
pointer to getcwd, which our FORTIFY implementation complains about at
compile-time. Since these tests are meant to throw invalid input at
standard functions and see how they react, I think it's reasonable to
just disable FORTIFY for this test.

In order to do this, the Android.mk generator had to be tweaked a bit.
So, we can now apply custom per-module cflags. This seemed preferable to
just disabling the test.

The `module_shared_libraries := cap` lines were generated both with and
without this patch; happy to get rid of them if they aren't supposed to
be there.

Bug: 32073964
Test: Ran ./gen_android_mk.sh -u, built bullhead, ran
vts-serving-staging-ltp, saw no new failures. getcwd02 no longer fails
to compile with clang FORTIFY enabled in Bionic.

Change-Id: I516c21c8240bde284f0c5c736a8c9ed205067415
4 files changed