kinsamanka@3778: #!/usr/bin/env python kinsamanka@3778: # -*- coding: utf-8 -*- kinsamanka@3778: kinsamanka@3778: # This file is part of Beremiz, a Integrated Development Environment for kinsamanka@3778: # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. kinsamanka@3778: # kinsamanka@3778: # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD kinsamanka@3778: # kinsamanka@3778: # See COPYING file for copyrights details. kinsamanka@3778: # kinsamanka@3778: # This program is free software; you can redistribute it and/or kinsamanka@3778: # modify it under the terms of the GNU General Public License kinsamanka@3778: # as published by the Free Software Foundation; either version 2 kinsamanka@3778: # of the License, or (at your option) any later version. kinsamanka@3778: # kinsamanka@3778: # This program is distributed in the hope that it will be useful, kinsamanka@3778: # but WITHOUT ANY WARRANTY; without even the implied warranty of kinsamanka@3778: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the kinsamanka@3778: # GNU General Public License for more details. kinsamanka@3778: # kinsamanka@3778: # You should have received a copy of the GNU General Public License kinsamanka@3778: # along with this program; if not, write to the Free Software kinsamanka@3778: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. kinsamanka@3778: kinsamanka@3778: kinsamanka@3778: from ..toolchain_gcc import toolchain_gcc edouard@3799: import platform kinsamanka@3778: kinsamanka@3778: kinsamanka@3778: class OSX_target(toolchain_gcc): kinsamanka@3778: dlopen_prefix = "./" kinsamanka@3778: extension = ".dynlib" kinsamanka@3778: kinsamanka@3778: def getBuilderCFLAGS(self): kinsamanka@3778: return toolchain_gcc.getBuilderCFLAGS(self) + \ kinsamanka@3779: ["-fPIC", "-Wno-deprecated-declarations", kinsamanka@3779: "-Wno-implicit-function-declaration", "-Wno-int-conversion", edouard@3799: "-Wno-parentheses-equality", "-Wno-varargs", "-arch", platform.machine()] kinsamanka@3778: kinsamanka@3778: def getBuilderLDFLAGS(self): edouard@3799: return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-arch", platform.machine()]