summaryrefslogtreecommitdiffhomepage
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-17 21:16:42 +0000
committermidipix <writeonce@midipix.org>2024-03-17 21:25:18 +0000
commit752cfeb2bd5984cdcf74d2e8bed3053a1cea1ce3 (patch)
tree0a728e8b9155f1d847422ef630400afc87c1a169 /sofort
parent2dfc1d4778c95be2b94c3ed7dee3914e19b3c0f7 (diff)
downloadapimagic-752cfeb2bd5984cdcf74d2e8bed3053a1cea1ce3.tar.bz2
apimagic-752cfeb2bd5984cdcf74d2e8bed3053a1cea1ce3.tar.xz
build system: ccenv.sh: supplement solar gates with the necessary extensions.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/ccenv/ccenv.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 30e28fd..fdba47e 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -1126,6 +1126,9 @@ ccenv_set_os()
ccenv_tip=${ccenv_cchost%-*}
ccenv_os=${ccenv_tip#*-}
;;
+ *-*-solaris* )
+ ccenv_os='solaris'
+ ;;
*-*-* )
ccenv_os=${ccenv_cchost#*-*-}
;;
@@ -1428,6 +1431,15 @@ ccenv_set_os_pe_switches()
fi
}
+ccenv_set_os_gate_switches()
+{
+ if [ "$ccenv_os" = 'solaris' ]; then
+ if ! cfgtest_macro_definition 'AT_FDCWD'; then
+ ccenv_cflags_os="${ccenv_cflags_os} -D__EXTENSIONS__"
+ fi
+ fi
+}
+
ccenv_output_defs()
{
ccenv_in="$mb_project_dir/sofort/ccenv/ccenv.in"
@@ -1793,6 +1805,7 @@ ccenv_set_toolchain_variables()
ccenv_set_os_dso_linkage
ccenv_set_os_dso_patterns
ccenv_set_os_pe_switches
+ ccenv_set_os_gate_switches
ccenv_set_cc_attr_visibility_vars
ccenv_output_defs