Use LDFLAGS during linking if they exist. I am doing this because I want to link with code coverage options.

This commit is contained in:
William Skellenger
2017-04-26 12:54:22 -04:00
parent 6dff24ecda
commit 14ba424b02
+1 -1
View File
@@ -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