libs found with check_lib should be added to LIBS - close #79

This commit is contained in:
josh committed 2018-12-17 23:05:18 -05:00
1 parent 5915ac2b95
commit 08085f09c4
3 files changed
+18

No files matched your search

+9
View File
@@ -1773,6 +1773,15 @@ EOF
expect(result.status).to eq 0
expect(result.stdout).to match /Checking for library 'mfoofoo'... not found/
end
it "links against the checked library by default" do
test_dir "configure"
result = run_rscons(rsconscript: "check_lib_success.rb", op: "build")
expect(result.stderr).to eq ""
expect(result.status).to eq 0
expect(result.stdout).to match /Checking for library 'm'... found/
expect(result.stdout).to match /gcc.*-lm/
end
end
context "check_program" do