]> git.tdb.fi Git - builder.git/commitdiff
Compile libraries with -fPIC
authorMikko Rasa <tdb@tdb.fi>
Thu, 3 Dec 2009 08:12:08 +0000 (08:12 +0000)
committerMikko Rasa <tdb@tdb.fi>
Thu, 3 Dec 2009 08:12:08 +0000 (08:12 +0000)
Update arm tool prefix

builderrc
source/component.cpp

index c6dc66d31bac613b4e3f61e11209289f6af95fd6..22f29f360a2c7ab9732037aba75cea09c344a0d6 100644 (file)
--- a/builderrc
+++ b/builderrc
@@ -69,7 +69,7 @@ binary_package "openal/win32"
 
 architecture "arm"
 {
-       prefix "arm-linux-gnu";
+       prefix "arm-linux-gnueabi";
 };
 
 architecture "win32"
index e96ac220cf48ed2d2525a4d6f1a21183503394c6..5e32de5275f12a2dc1eb1f66c3466d15b482e050 100644 (file)
@@ -67,6 +67,10 @@ void Component::create_build_info()
                if(lexical_cast<bool>(strip))
                        build_info.ldflags.push_back("-s");
        }
+       else if(type==LIBRARY)
+       {
+               build_info.cflags.push_back("-fPIC");
+       }
 
        if(modular)
        {