X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=buildtools%2Fauto-config-h.sh;fp=buildtools%2Fauto-config-h.sh;h=cb8bce9b8d77ac5c30e11c3cbee46adf7697a87c;hp=4356d7e38af7a0f9821f03195386ef9f702beff8;hb=a462a6a9e7705e0a8e855ed42377041ff0efc908;hpb=0e3ef055bee51b6cf4bf8d8d0a1377a5941a0741 diff --git a/buildtools/auto-config-h.sh b/buildtools/auto-config-h.sh index 4356d7e38a..cb8bce9b8d 100755 --- a/buildtools/auto-config-h.sh +++ b/buildtools/auto-config-h.sh @@ -114,9 +114,9 @@ printf "\ " "$include" "$code" > "${temp}" && if ${CC} ${CPPFLAGS} ${EXTRA_CPPFLAGS} ${CFLAGS} ${EXTRA_CFLAGS} \ ${AUTO_CONFIG_CFLAGS} \ - -c -o /dev/null "${temp}" 1>&${out} 2>&${err} + -c -o ${temp}.o "${temp}" 1>&${out} 2>&${err} then - rm -f "${temp}" + rm -f "${temp}" "${temp}.o" printf "\ #ifndef %s #define %s 1 @@ -125,7 +125,7 @@ then " "${macro}" "${macro}" "${macro}" >> "${file}" && printf 'Defining %s.\n' "${macro}" else - rm -f "${temp}" + rm -f "${temp}" "${temp}.o" printf "\ /* %s is not defined. */