8081471: Allow SetupTestFilesCompilation to set LDFLAGS for individual tests
Reviewed-by: erikj
--- a/make/common/TestFilesCompilation.gmk Thu May 28 16:31:47 2015 +0200
+++ b/make/common/TestFilesCompilation.gmk Wed Jun 03 11:03:06 2015 +0200
@@ -86,8 +86,8 @@
OBJECT_DIR := $$($1_OUTPUT_DIR)/support/$$($1_PREFIX)$$(name), \
OUTPUT_DIR := $$($1_OUTPUT_DIR)/$$($1_OUTPUT_SUBDIR), \
LANG := C, \
- CFLAGS := $$($1_CFLAGS), \
- LDFLAGS := $$($1_LDFLAGS), \
+ CFLAGS := $$($1_CFLAGS) $$($1_CFLAGS_$$($1_PREFIX)$$(name)), \
+ LDFLAGS := $$($1_LDFLAGS) $$($1_LDFLAGS_$$($1_PREFIX)$$(name)), \
OPTIMIZATION := LOW, \
DEBUG_SYMBOLS := true)) \
$$(eval $1 += $$(BUILD_TEST_$$(name)) ) \