diff options
author | andreast <andreast@FreeBSD.org> | 2012-01-20 18:49:47 +0000 |
---|---|---|
committer | andreast <andreast@FreeBSD.org> | 2012-01-20 18:49:47 +0000 |
commit | e3808d576a4274eadbc5b93d45c291b57be63ad4 (patch) | |
tree | d41c40838ab7f3fd2345414a2a54f0c7eca32e0e | |
parent | ca3be759648368be72065a6d665d21db1199740e (diff) | |
download | FreeBSD-src-e3808d576a4274eadbc5b93d45c291b57be63ad4.zip FreeBSD-src-e3808d576a4274eadbc5b93d45c291b57be63ad4.tar.gz |
Disable GUPROF on archs other than i386/amd64 since the fine details are not
implemented.
-rw-r--r-- | sys/conf/kern.pre.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index a209ddd..4e550ab 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -103,11 +103,14 @@ ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} .if defined(PROFLEVEL) && ${PROFLEVEL} >= 1 CFLAGS+= -DGPROF -falign-functions=16 +PROF= -pg .if ${PROFLEVEL} >= 2 CFLAGS+= -DGPROF4 -DGUPROF -PROF= -pg -mprofiler-epilogue +.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" +PROF+= -mprofiler-epilogue .else -PROF= -pg +.error "GUPROF not supported on ${MACHINE_CPUARCH}." +.endif .endif .endif DEFINED_PROF= ${PROF} |