]> git.tdb.fi Git - builder.git/blobdiff - source/gnuobjccompiler.cpp
Don't treat using deprecated declarations as errors
[builder.git] / source / gnuobjccompiler.cpp
index eddca5ff9a5de66b88fe6f40d90cbc8831d0f0b0..16e5215c1c0d6528e9c12c7a4ef5a004d56d5bf5 100644 (file)
@@ -3,11 +3,12 @@
 
 using namespace Msp;
 
-GnuObjCCompiler::GnuObjCCompiler(Builder &b, const Architecture &a):
-       GnuCompiler(b, a, "OBJC")
+GnuObjCCompiler::GnuObjCCompiler(Builder &b, const Architecture &a, const FS::Path &sysroot):
+       GnuCompiler(b, a, "OBJC", sysroot)
 {
        set_command("gcc", true);
        input_suffixes.push_back(".m");
+       build_info.libs.push_back("objc");
 }
 
 Target *GnuObjCCompiler::create_source(const Component &comp, const FS::Path &path) const