Move dependency generation falgs out of configure
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
868dc0b4ad
commit
02d5467e9f
5
configure
vendored
5
configure
vendored
@ -14,9 +14,8 @@ fi
|
|||||||
TMPC="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.c"
|
TMPC="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.c"
|
||||||
TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
|
TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
|
||||||
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}"
|
TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}"
|
||||||
TMPD="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.d"
|
|
||||||
|
|
||||||
trap "rm -f $TMPC $TMPO $TMPE $TMPD ; exit" 0 2 3 15
|
trap "rm -f $TMPC $TMPO $TMPE ; exit" 0 2 3 15
|
||||||
|
|
||||||
compile_object() {
|
compile_object() {
|
||||||
$cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
|
$cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
|
||||||
@ -1692,7 +1691,7 @@ QEMU_CFLAGS="-Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes $
|
|||||||
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
|
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-U_FORTIFY_SOURCE $QEMU_CFLAGS"
|
QEMU_CFLAGS="-U_FORTIFY_SOURCE $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-I. -I\$(SRC_PATH) -MMD -MP -MT \$@ $QEMU_CFLAGS"
|
QEMU_CFLAGS="-I. -I\$(SRC_PATH) $QEMU_CFLAGS"
|
||||||
LDFLAGS="-g $LDFLAGS"
|
LDFLAGS="-g $LDFLAGS"
|
||||||
|
|
||||||
gcc_flags="-Wold-style-declaration -Wold-style-definition"
|
gcc_flags="-Wold-style-declaration -Wold-style-definition"
|
||||||
|
@ -11,6 +11,8 @@ MAKEFLAGS += -rR
|
|||||||
%.m:
|
%.m:
|
||||||
%.mak:
|
%.mak:
|
||||||
|
|
||||||
|
QEMU_CFLAGS += -MMD -MP -MT $@
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
|
$(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user