From 016feefa33ac6baeb05fc237d397ead5ccf65d4a Mon Sep 17 00:00:00 2001 From: obrien Date: Sun, 9 Jun 2002 00:03:56 +0000 Subject: Allow one to profile FORTRAN77 programs. --- gnu/usr.bin/cc/cc_tools/freebsd-native.h | 1 + gnu/usr.bin/cc/f77/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin') 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} -- cgit v1.1