mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 01:50:35 +00:00
MFC r205398: Do not create *.gmon files for PIE executables on i386.
Scrt1_c.o was accidentally compiled with -DGCRT (profiling), like gcrt1_c.o. This problem is i386-specific, the other architectures are OK. If you have problems with PIE executables such as samba and cups leaving behind gmon files, rebuild them after installing this change. PR: ports/143924
This commit is contained in:
parent
065ee77712
commit
135346b2c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=205567
|
@ -24,7 +24,7 @@ crt1.o: crt1_c.o crt1_s.o
|
||||||
objcopy --localize-symbol _start1 crt1.o
|
objcopy --localize-symbol _start1 crt1.o
|
||||||
|
|
||||||
Scrt1_c.o: crt1_c.c
|
Scrt1_c.o: crt1_c.c
|
||||||
${CC} ${CFLAGS} -DGCRT -fPIC -DPIC -c -o Scrt1_c.o ${.CURDIR}/crt1_c.c
|
${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1_c.o ${.CURDIR}/crt1_c.c
|
||||||
|
|
||||||
Scrt1.o: Scrt1_c.o crt1_s.o
|
Scrt1.o: Scrt1_c.o crt1_s.o
|
||||||
${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
|
${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
|
||||||
|
|
Loading…
Reference in a new issue