'target'. Latter is problematic in particular as apparently FreeBSD's bsd.prog.mk re-defines it under some circumstances. This causes an unexpected failures like -dumpmachine not working for cc while working fine for c++. Do not re-define IN_GCC in multipe places, it gets inherited from Makefile.in anyway. PR: gnu/110143 Submitted by: usleepless at gmail
16 lines
464 B
Makefile
16 lines
464 B
Makefile
# $FreeBSD$
|
|
|
|
# Front-end-only bits
|
|
|
|
GCC_VERSION!= sed -n /version_string/p ${GCCDIR}/version.c | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'
|
|
|
|
#
|
|
# These were previously defined in gcc.c. Just copy previous values from
|
|
# there. We ifdef most of them out for FREEBSD_NATIVE builds anyway.
|
|
# gcc.c won't compile without them though.
|
|
DRIVER_DEFINES = \
|
|
-DDEFAULT_TARGET_VERSION=\"$(GCC_VERSION)\" \
|
|
-DDEFAULT_TARGET_MACHINE=\"$(GCC_TARGET)\" \
|
|
|
|
CFLAGS+= ${DRIVER_DEFINES}
|