/usr/bin/gsc-cc-o.bat is in gambc 4.2.8-1.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #! /bin/sh
# Script parameters are passed in the following environment variables:
# GSC_CC_O_GAMBCDIR
# GSC_CC_O_OBJ_FILENAME
# GSC_CC_O_C_FILENAME_DIR
# GSC_CC_O_C_FILENAME_BASE
# GSC_CC_O_CC_OPTIONS
# GSC_CC_O_LD_OPTIONS_PRELUDE
# GSC_CC_O_LD_OPTIONS
# echo GSC_CC_O_GAMBCDIR = "${GSC_CC_O_GAMBCDIR}"
# echo GSC_CC_O_OBJ_FILENAME = "${GSC_CC_O_OBJ_FILENAME}"
# echo GSC_CC_O_C_FILENAME_DIR = "${GSC_CC_O_C_FILENAME_DIR}"
# echo GSC_CC_O_C_FILENAME_BASE = "${GSC_CC_O_C_FILENAME_BASE}"
# echo GSC_CC_O_CC_OPTIONS = "${GSC_CC_O_CC_OPTIONS}"
# echo GSC_CC_O_LD_OPTIONS_PRELUDE = "${GSC_CC_O_LD_OPTIONS_PRELUDE}"
# echo GSC_CC_O_LD_OPTIONS = "${GSC_CC_O_LD_OPTIONS}"
cd "${GSC_CC_O_C_FILENAME_DIR}"
gcc -Wl,-Bsymbolic-functions -Wl,-z,defs -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -rdynamic -shared -I"${GSC_CC_O_GAMBCDIR}include" -D___DYNAMIC -D___SINGLE_HOST -o "${GSC_CC_O_OBJ_FILENAME}" ${GSC_CC_O_CC_OPTIONS} ${GSC_CC_O_LD_OPTIONS_PRELUDE} "${GSC_CC_O_C_FILENAME_BASE}" ${GSC_CC_O_LD_OPTIONS}
|