Date: Thu, 25 Dec 2008 21:10:03 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-amd64@FreeBSD.org Subject: Re: amd64/127640: GCC will not build shared libraries with -fprofile-generate on amd64 Message-ID: <200812252110.mBPLA3jP073441@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/127640; it has been noted by GNATS. From: Bruce Cran <bruce@cran.org.uk> To: bug-followup@FreeBSD.org, zlynx@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812252110.mBPLA3jP073441>