targets/Linux/__init__.py
changeset 1784 64beb9e9c749
parent 1751 c28db6f7616b
child 1881 091005ec69c4
equal deleted inserted replaced
1729:31e63e25b4cc 1784:64beb9e9c749
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
    25 from ..toolchain_gcc import toolchain_gcc
    25 from ..toolchain_gcc import toolchain_gcc
    26 
    26 
       
    27 
    27 class Linux_target(toolchain_gcc):
    28 class Linux_target(toolchain_gcc):
    28     dlopen_prefix = "./"
    29     dlopen_prefix = "./"
    29     extension = ".so"
    30     extension = ".so"
       
    31 
    30     def getBuilderCFLAGS(self):
    32     def getBuilderCFLAGS(self):
    31         return toolchain_gcc.getBuilderCFLAGS(self) + ["-fPIC"]
    33         return toolchain_gcc.getBuilderCFLAGS(self) + ["-fPIC"]
       
    34 
    32     def getBuilderLDFLAGS(self):
    35     def getBuilderLDFLAGS(self):
    33         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-lrt"]
    36         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-lrt"]