From ce86d90028b2e69799a82fda19f78161e1c09099 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 3 Dec 2009 08:12:08 +0000 Subject: [PATCH] Compile libraries with -fPIC Update arm tool prefix --- builderrc | 2 +- source/component.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/builderrc b/builderrc index c6dc66d..22f29f3 100644 --- a/builderrc +++ b/builderrc @@ -69,7 +69,7 @@ binary_package "openal/win32" architecture "arm" { - prefix "arm-linux-gnu"; + prefix "arm-linux-gnueabi"; }; architecture "win32" diff --git a/source/component.cpp b/source/component.cpp index e96ac22..5e32de5 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -67,6 +67,10 @@ void Component::create_build_info() if(lexical_cast(strip)) build_info.ldflags.push_back("-s"); } + else if(type==LIBRARY) + { + build_info.cflags.push_back("-fPIC"); + } if(modular) { -- 2.43.0