From 3ab9c8723b0fc05c9f06a89aa6ccda79946e499d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 12 Jun 2014 13:35:11 -0400 Subject: [PATCH] fix a build test for MinGW --- spec/build_tests_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 787e7c1..c2e5985 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -168,10 +168,10 @@ describe Rscons do "gcc -o simple#{env["PROGSUFFIX"]} simple.o", ] e2 = Rscons::Environment.new(echo: :command) do |env| - env["LIBS"] += ["c"] + env["LIBPATH"] += ["libdir"] env.Program('simple', Dir['*.c']) end - lines.should == ["gcc -o simple#{env["PROGSUFFIX"]} simple.o -lc"] + lines.should == ["gcc -o simple#{env["PROGSUFFIX"]} simple.o -Llibdir"] end it 'builds object files in a different build directory' do