diff --git a/ChangeLog b/ChangeLog index eee46de97..1681dbfc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-24 Jeremy C. Reed + + * configure.ac: + On NetBSD, add -li386 for i386 and -lx86_64 for x86_64 to + SYS_LIBS. (x86_64 on NetBSD not tested.) + 2006-05-24 Jeremy C. Reed reviewed by: Daniel Stone diff --git a/configure.ac b/configure.ac index a3d98281a..041253c06 100644 --- a/configure.ac +++ b/configure.ac @@ -202,7 +202,9 @@ case $host_cpu in case $host_os in *linux*) DEFAULT_INT10=vm86 ;; *freebsd*) AC_DEFINE(USE_DEV_IO) ;; - *netbsd*) AC_DEFINE(USE_I386_IOPL) ;; + *netbsd*) AC_DEFINE(USE_I386_IOPL) + SYS_LIBS=-li386 + ;; *openbsd*) AC_DEFINE(USE_I386_IOPL) SYS_LIBS=-li386 ;; @@ -224,7 +226,9 @@ case $host_cpu in I386_VIDEO=yes case $host_os in *freebsd*) AC_DEFINE(USE_DEV_IO, 1, [BSD /dev/io]) ;; - *netbsd*) AC_DEFINE(USE_I386_IOPL, 1, [BSD i386 iopl]) ;; + *netbsd*) AC_DEFINE(USE_I386_IOPL, 1, [BSD i386 iopl]) + SYS_LIBS=-lx86_64 + ;; *openbsd*) AC_DEFINE(USE_AMD64_IOPL, 1, [BSD AMD64 iopl]) SYS_LIBS=-lamd64 ;;