/usr/bin/fcc is in fcc 2.8-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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #! /bin/sh
# script to compile C programs that are linked
# against Fortran libraries
# last modified 22 Jul 11 th
args=
objs=
ldflags=
fldflags="-Wl,-Bsymbolic-functions -Wl,-z,relro -lpthread -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lgfortran -lm -lquadmath -lm -m64"
compileonly=
cc="${REALCC:-cc}"
cxx="${REALCXX:-c++}"
test `basename $0 .in` = f++ && cc="$cxx"
while test $# -gt 0 ; do
case "$1" in
-st | -b32 | -b64)
;; # ignore mcc-specific flags
-arch)
shift
;;
-lstdc++)
cc="$cxx"
;; # or else -static-libstdc++ has no effect
-Wno-long-double)
;; # mcc adds this on Macs & gcc 4 doesn't like it
-[Ll]* | -Wl*)
ldflags="$ldflags '$1'"
;;
*.tm.o)
objs="'$1' $objs"
;;
*.a | *.o | *.so)
objs="$objs '$1'"
;;
*.cc)
args="$args '$1'"
cc="$cxx"
;;
-c)
compileonly="-c"
;;
-o)
args="$args -o '$2'"
shift
;;
*)
args="$args '$1'"
;;
esac
shift
done
eval "set -x ; exec $cc $args ${compileonly:-$objs $ldflags $fldflags}"
|