X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=buildtools%2Fauto-config-h.sh;h=5b613c35fcfb1078c8f1068223266ae6126fc194;hb=09096df509db3f026e9f112d5f63422db6f52968;hp=d28a5c3ad9bc53def43023de912e3f99f2b392eb;hpb=f83a3d3fa8b7a9a9861a32ae0d6fac4d864d772c;p=dpdk.git diff --git a/buildtools/auto-config-h.sh b/buildtools/auto-config-h.sh index d28a5c3ad9..5b613c35fc 100755 --- a/buildtools/auto-config-h.sh +++ b/buildtools/auto-config-h.sh @@ -23,7 +23,7 @@ name=${5:?define/type/function name required} : ${CC:=cc} -temp=/tmp/${0##*/}.$$.c +temp=$(mktemp -t dpdk.${0##*/}.c.XXXXXX) case $type in define) @@ -86,7 +86,7 @@ printf "\ " "$include" "$code" > "${temp}" && if ${CC} ${CPPFLAGS} ${EXTRA_CPPFLAGS} ${CFLAGS} ${EXTRA_CFLAGS} \ ${AUTO_CONFIG_CFLAGS} \ - -c -o ${temp}.o "${temp}" 1>&${out} 2>&${err} + -xc -c -o ${temp}.o "${temp}" 1>&${out} 2>&${err} then rm -f "${temp}" "${temp}.o" printf "\