author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Thu, 04 Apr 2024 17:31:49 +0200 | |
changeset 3926 | a6ec38dcbfb5 |
parent 3799 | 2b995a4963a4 |
permissions | -rw-r--r-- |
3778 | 1 |
#!/usr/bin/env python |
2 |
# -*- coding: utf-8 -*- |
|
3 |
||
4 |
# This file is part of Beremiz, a Integrated Development Environment for |
|
5 |
# programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
|
6 |
# |
|
7 |
# Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD |
|
8 |
# |
|
9 |
# See COPYING file for copyrights details. |
|
10 |
# |
|
11 |
# This program is free software; you can redistribute it and/or |
|
12 |
# modify it under the terms of the GNU General Public License |
|
13 |
# as published by the Free Software Foundation; either version 2 |
|
14 |
# of the License, or (at your option) any later version. |
|
15 |
# |
|
16 |
# This program is distributed in the hope that it will be useful, |
|
17 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
# GNU General Public License for more details. |
|
20 |
# |
|
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 |
|
23 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
24 |
||
25 |
||
26 |
from ..toolchain_gcc import toolchain_gcc |
|
3799
2b995a4963a4
Better LDFLAGS and CFLAGS for win32 an MACOS
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3779
diff
changeset
|
27 |
import platform |
3778 | 28 |
|
29 |
||
30 |
class OSX_target(toolchain_gcc): |
|
31 |
dlopen_prefix = "./" |
|
32 |
extension = ".dynlib" |
|
33 |
||
34 |
def getBuilderCFLAGS(self): |
|
35 |
return toolchain_gcc.getBuilderCFLAGS(self) + \ |
|
3779
31c9409a5841
silence compile warnings
GP Orcullo <kinsamanka@gmail.com>
parents:
3778
diff
changeset
|
36 |
["-fPIC", "-Wno-deprecated-declarations", |
31c9409a5841
silence compile warnings
GP Orcullo <kinsamanka@gmail.com>
parents:
3778
diff
changeset
|
37 |
"-Wno-implicit-function-declaration", "-Wno-int-conversion", |
3799
2b995a4963a4
Better LDFLAGS and CFLAGS for win32 an MACOS
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3779
diff
changeset
|
38 |
"-Wno-parentheses-equality", "-Wno-varargs", "-arch", platform.machine()] |
3778 | 39 |
|
40 |
def getBuilderLDFLAGS(self): |
|
3799
2b995a4963a4
Better LDFLAGS and CFLAGS for win32 an MACOS
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3779
diff
changeset
|
41 |
return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-arch", platform.machine()] |