]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/buildtools/auto-config-h.sh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / buildtools / auto-config-h.sh
index d28a5c3ad9bc53def43023de912e3f99f2b392eb..5b613c35fcfb1078c8f1068223266ae6126fc194 100755 (executable)
@@ -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 "\