Added BuildPlatformStaticLibraryPIC rule.

It works like BuildPlatformStaticLibrary, but generates position
independent code.
This commit is contained in:
Ingo Weinhold
2011-11-12 15:40:17 +01:00
parent e89f127b9e
commit a235c39ee4
+9
View File
@@ -724,3 +724,12 @@ rule BuildPlatformStaticLibrary lib : sources : otherObjects
StaticLibrary $(lib) : $(sources) : $(otherObjects) ;
}
rule BuildPlatformStaticLibraryPIC target : sources : otherObjects
{
# Like BuildPlatformStaticLibrary, but producing position independent code.
ObjectCcFlags $(sources) : $(HOST_PIC_CCFLAGS) ;
ObjectC++Flags $(sources) : $(HOST_PIC_C++FLAGS) ;
BuildPlatformStaticLibrary $(target) : $(sources) : $(otherObjects) ;
}