From 14ba424b027314578886b1172775e7516d91cd7a Mon Sep 17 00:00:00 2001 From: William Skellenger Date: Wed, 26 Apr 2017 12:54:22 -0400 Subject: [PATCH] Use LDFLAGS during linking if they exist. I am doing this because I want to link with code coverage options. --- scripts/create_makefile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_makefile.rb b/scripts/create_makefile.rb index dbee35d..2a1464a 100644 --- a/scripts/create_makefile.rb +++ b/scripts/create_makefile.rb @@ -122,7 +122,7 @@ File.open(TEST_MAKEFILE, "w") do |mkfile| # Build test suite executable test_objs = "#{test_obj} #{runner_obj} #{module_obj} #{mock_objs.join(' ')} #{UNITY_OBJ} #{CMOCK_OBJ}" mkfile.puts "#{test_bin}: #{test_objs}" - mkfile.puts "\t${CC} -o $@ #{test_objs}" + mkfile.puts "\t${CC} -o $@ ${LDFLAGS} #{test_objs}" mkfile.puts "" # Run test suite and generate report