targets/Linux/__init__.py
author Edouard Tisserant
Tue, 05 Mar 2013 20:14:12 +0900
changeset 957 463d4b2b058d
parent 642 cd7ccbbbf471
child 1279 0eb9f8af479f
permissions -rwxr-xr-x
CanFestival plugin now sends driver as extra file to runtime if matching target. Helps on windows to resolve DLL
642
cd7ccbbbf471 various cleanups in /targets
Edouard Tisserant
parents: 635
diff changeset
     1
from ..toolchain_gcc import toolchain_gcc
203
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"]