X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=configure;h=be29db9a606d3bdf287cf5d7ef8ec518cdb98d3a;hb=fa3c391d19a7775f8c0b9955a4d86f6afe439526;hp=d0c2173fd2d0d06b97e5b4dcdc9e5b44a87b51df;hpb=bc0c01e5d03d27e80d2a3b85ab21714bb6f32a19;p=fio.git diff --git a/configure b/configure index d0c2173f..be29db9a 100755 --- a/configure +++ b/configure @@ -268,6 +268,17 @@ Darwin) if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then cpu="x86_64" fi + # Error at compile time linking of weak/partial symbols if possible... +cat > $TMPC <> $config_host_mak echo "BUILD_CFLAGS=$CFLAGS -I../zlib -include config-host.h -D_GNU_SOURCE" >> $config_host_mak @@ -367,7 +378,7 @@ case "$cpu" in cpu="$cpu" ;; i386|i486|i586|i686|i86pc|BePC) - cpu="i386" + cpu="x86" ;; x86_64|amd64) cpu="x86_64" @@ -815,14 +826,12 @@ echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise" # clockid_t probe clockid_t="no" cat > $TMPC << EOF -#include -#include #include int main(int argc, char **argv) { - clockid_t cid; + volatile clockid_t cid; memset(&cid, 0, sizeof(cid)); - return clock_gettime(cid, NULL); + return 0; } EOF if compile_prog "" "$LIBS" "clockid_t"; then