targets/OSX/__init__.py
branchpython3
changeset 3779 31c9409a5841
parent 3778 296e459efdfb
child 3799 2b995a4963a4
equal deleted inserted replaced
3778:296e459efdfb 3779:31c9409a5841
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    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 
    25 
    26 
       
    27 from ..toolchain_gcc import toolchain_gcc
    26 from ..toolchain_gcc import toolchain_gcc
    28 
    27 
    29 
    28 
    30 class OSX_target(toolchain_gcc):
    29 class OSX_target(toolchain_gcc):
    31     dlopen_prefix = "./"
    30     dlopen_prefix = "./"
    32     extension = ".dynlib"
    31     extension = ".dynlib"
    33 
    32 
    34     def getBuilderCFLAGS(self):
    33     def getBuilderCFLAGS(self):
    35         return toolchain_gcc.getBuilderCFLAGS(self) + \
    34         return toolchain_gcc.getBuilderCFLAGS(self) + \
    36                 ["-fPIC", "-Wno-deprecated-declarations",
    35             ["-fPIC", "-Wno-deprecated-declarations",
    37                  "-Wno-parentheses-equality", "-Wno-varargs"]
    36              "-Wno-implicit-function-declaration", "-Wno-int-conversion",
       
    37              "-Wno-parentheses-equality", "-Wno-varargs"]
    38 
    38 
    39     def getBuilderLDFLAGS(self):
    39     def getBuilderLDFLAGS(self):
    40         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared"]
    40         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared"]