diff options
author | obrien <obrien@FreeBSD.org> | 2002-06-09 00:03:56 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-06-09 00:03:56 +0000 |
commit | 016feefa33ac6baeb05fc237d397ead5ccf65d4a (patch) | |
tree | 45bf03ffa70750e38f87f9b248fdd4c6d461223e /gnu | |
parent | c2750abc35ce901efc9e0b3acd9aa1bc6c0309b0 (diff) | |
download | FreeBSD-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.h | 1 | ||||
-rw-r--r-- | gnu/usr.bin/cc/f77/Makefile | 2 |
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} |