diff --git a/configure.in b/configure.in index 56d73b5b3..b65c3ed5d 100644 --- a/configure.in +++ b/configure.in @@ -1284,7 +1284,7 @@ case "$target" in COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) fi # NetBSD does not define "unix" - CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1" + CFLAGS="$CFLAGS -Dunix" ;; *-*-openbsd*) ARCH=openbsd diff --git a/ltconfig b/ltconfig index 356b14fa8..ad46d1b73 100755 --- a/ltconfig +++ b/ltconfig @@ -1286,6 +1286,9 @@ EOF # dlltool doesn't understand --whole-archive et. al. whole_archive_flag_spec= ;; + netbsd*) + whole_archive_flag_spec= + ;; *) # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then