From 2ff8dd8b71b63a1e7046ce8650af7004e8ba45ae Mon Sep 17 00:00:00 2001 From: John Marino Date: Thu, 5 May 2011 21:16:01 +0200 Subject: [PATCH] gcc 4.4: Remove PIE profiling trigger The support for Position Independent Executables came from FreeBSD. Unfortunately, a bug in their initial commit was also carried over. Removing the GCRT define from the i386 crtstuff makefile will stop PIE binaries from generating *.gmon files as they are executed. The main software that suffers this are cups and samba. Rebuilding those ports after rebuilding world will fix this issue on the i386 platform, the only one affected. Report by mroland, issue 2063 --- lib/csu/i386/Makefile.csu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/csu/i386/Makefile.csu b/lib/csu/i386/Makefile.csu index 44a12484aa..a36a1880ad 100644 --- a/lib/csu/i386/Makefile.csu +++ b/lib/csu/i386/Makefile.csu @@ -22,7 +22,7 @@ crt1.o: crt1_c.o crt1_s.o objcopy --localize-symbol _start1 crt1.o Scrt1_c.o: crt1_c.c - ${CC} ${CFLAGS} -DGCRT -fPIC -DPIC -c -o Scrt1_c.o ${CSUDIR}/crt1_c.c + ${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1_c.o ${CSUDIR}/crt1_c.c Scrt1.o: Scrt1_c.o crt1_s.o ${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o -- 2.41.0