8081471: Allow SetupTestFilesCompilation to set LDFLAGS for individual tests
authorihse
Wed, 03 Jun 2015 11:03:06 +0200
changeset 31220 8a9b0fe3f23c
parent 31011 74f74963b502
child 31221 72b40bd3f4ee
8081471: Allow SetupTestFilesCompilation to set LDFLAGS for individual tests Reviewed-by: erikj
make/common/TestFilesCompilation.gmk
--- 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)) )  \