mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Working changes for GCC 3.0.2.
This thing grew. We now have to link with many more files as if it were one of the driver programs. We also have to deal with the very irritating layering of malloc and friends. Our malloc works *very* well thank you. Thus we will use it.
This commit is contained in:
parent
0d4ffb0f07
commit
2c8b5b1291
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/WIP_GCC31/; revision=88096
36
gnu/usr.bin/cc/c++filt/Makefile
Normal file
36
gnu/usr.bin/cc/c++filt/Makefile
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
.include "../Makefile.inc"
|
||||||
|
|
||||||
|
.PATH: ${GCCDIR}
|
||||||
|
|
||||||
|
PROG= c++filt
|
||||||
|
SRCS= cp-demangle.c cplus-dem+%DIKED.c getopt.c getopt1.c underscore.c
|
||||||
|
BINDIR= /usr/libexec/${OBJFORMAT}
|
||||||
|
NOMAN= 1
|
||||||
|
|
||||||
|
CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
|
||||||
|
|
||||||
|
DPADD+= ${LIBCC_INT}
|
||||||
|
LDADD+= ${LIBCC_INT}
|
||||||
|
|
||||||
|
CLEANFILES= tmp-dum.c tmp-dum.s underscore.c
|
||||||
|
|
||||||
|
underscore.c:
|
||||||
|
echo "int xxy_us_dummy;" >tmp-dum.c
|
||||||
|
${CC} -S tmp-dum.c
|
||||||
|
echo '/*WARNING: This file is automatically generated!*/' >underscore.c
|
||||||
|
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
|
||||||
|
echo "int prepends_underscore = 1;" >>underscore.c; \
|
||||||
|
else \
|
||||||
|
echo "int prepends_underscore = 0;" >>underscore.c; \
|
||||||
|
fi
|
||||||
|
rm -f tmp-dum.c tmp-dum.s
|
||||||
|
|
||||||
|
cplus-dem+%DIKED.c: cplus-dem.c
|
||||||
|
sed \
|
||||||
|
-e 's/^xmalloc[ ]/_DONT_xmalloc /g' \
|
||||||
|
-e 's/^xrealloc[ ]/_DONT_xrealloc /g' \
|
||||||
|
${.ALLSRC} > ${.TARGET}
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user