targets/Linux/__init__.py
author Edouard Tisserant
Wed, 16 Nov 2011 17:47:13 +0100
changeset 635 fcdb60cacb2c
parent 290 3bd617ae7a05
child 642 cd7ccbbbf471
permissions -rwxr-xr-x
added -fPIC to satisfy X86_64 build
203
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     1
from .. import toolchain_gcc
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     2
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     3
class Linux_target(toolchain_gcc):
cb9901076a21 Added concepts :
etisserant
parents:
diff changeset
     4
    extension = ".so"
635
fcdb60cacb2c added -fPIC to satisfy X86_64 build
Edouard Tisserant
parents: 290
diff changeset
     5
    def getBuilderCFLAGS(self):
fcdb60cacb2c added -fPIC to satisfy X86_64 build
Edouard Tisserant
parents: 290
diff changeset
     6
        return toolchain_gcc.getBuilderCFLAGS(self) + ["-fPIC"]
290
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 229
diff changeset
     7
    def getBuilderLDFLAGS(self):
3bd617ae7a05 Local Runtime (LOCAL://) now launched "on demand"
etisserant
parents: 229
diff changeset
     8
        return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-lrt"]