Added BuildPlatformStaticLibraryPIC rule.

It works like BuildPlatformStaticLibrary, but generates position
independent code.
This commit is contained in:
Ingo Weinhold
2011-07-17 16:54:06 +02:00
parent 3dfd9cb95c
commit bc93eff874
+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) ;
}