summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-09 00:03:56 +0000
committerobrien <obrien@FreeBSD.org>2002-06-09 00:03:56 +0000
commit016feefa33ac6baeb05fc237d397ead5ccf65d4a (patch)
tree45bf03ffa70750e38f87f9b248fdd4c6d461223e /gnu
parentc2750abc35ce901efc9e0b3acd9aa1bc6c0309b0 (diff)
downloadFreeBSD-src-016feefa33ac6baeb05fc237d397ead5ccf65d4a.zip
FreeBSD-src-016feefa33ac6baeb05fc237d397ead5ccf65d4a.tar.gz
Allow one to profile FORTRAN77 programs.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h1
-rw-r--r--gnu/usr.bin/cc/f77/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
index ce6c982..a102a89 100644
--- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h
+++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
@@ -51,6 +51,7 @@
#define LIBGCC_SPEC "%{!pg: -lgcc} %{pg: -lgcc_p}"
#define LIBSTDCXX_PROFILE "-lstdc++_p"
#define MATH_LIBRARY_PROFILE "-lm_p"
+#define FORTRAN_LIBRARY_PROFILE "-lg2c_p"
/* FreeBSD is 4.4BSD derived */
#define bsd4_4
diff --git a/gnu/usr.bin/cc/f77/Makefile b/gnu/usr.bin/cc/f77/Makefile
index da5e79a..4902ba5 100644
--- a/gnu/usr.bin/cc/f77/Makefile
+++ b/gnu/usr.bin/cc/f77/Makefile
@@ -10,7 +10,7 @@ SRCS= gcc.c g77spec.c version.c
CFLAGS+= -DDEFAULT_TARGET_VERSION=\"$(version)\"
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"$(target)\"
-CFLAGS+= -DFORTRAN_INIT=\"-lg2c\"
+CFLAGS+= -DFORTRAN_INIT=\"-lg2c\" -DFORTRAN_INIT_PROFILE=\"-lg2c_p\"
DPADD= ${LIBCC_INT}
LDADD= ${LIBCC_INT}
OpenPOWER on IntegriCloud