amd64/127640: GCC will not build shared libraries with -fprofile-generate on amd64

Bruce Cran bruce at cran.org.uk
Thu Dec 25 13:10:03 PST 2008


The following reply was made to PR amd64/127640; it has been noted by GNATS.

From: Bruce Cran <bruce at cran.org.uk>
To: bug-followup at FreeBSD.org, zlynx at acm.org
Cc:  
Subject: Re: amd64/127640: GCC will not build shared libraries with
 -fprofile-generate on amd64
Date: Thu, 25 Dec 2008 21:03:37 +0000

 I think the problem isn't that the application isn't being built with
 -fPIC, but that libgcov.a hasn't been built with it.  Running a 'make'
 in /usr/src/gnu/lib/libgcov shows libgcov.c being built without that
 flag, despite the following being present in the Makefile:
 
 $(OBJS_T}: libgcov.c
 	${CC} -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${.ALLSRC:M*.c}
 
 .if !defined(NO_PIC)
 ${OBJS_S}: libgcov.c
 	${CC} -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} -o ${.TARGET}
 ${.ALLSRC:M*.c}
 .endif
 
 --
 Bruce Cran


More information about the freebsd-amd64 mailing list