Add static link support for bxhub and bximage (#277)

This commit is contained in:
Vort 2024-03-10 17:23:13 +02:00 committed by GitHub
parent d350c008e2
commit f31b115e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

6
bochs/configure vendored
View File

@ -26506,10 +26506,16 @@ case "$target" in
;;
*-mingw32* | *-msys)
BXIMAGE_LINK_OPTS="-luser32"
if test "$enable_static_link" = yes; then
BXIMAGE_LINK_OPTS="${BXIMAGE_LINK_OPTS} -static"
fi
if test "$networking" = yes; then
OPTIONAL_TARGET="$OPTIONAL_TARGET bxhub niclist"
BXHUB_FLAG="-DBXHUB"
BXHUB_LINK_OPTS="-lws2_32"
if test "$enable_static_link" = yes; then
BXHUB_LINK_OPTS="${BXHUB_LINK_OPTS} -static"
fi
fi
printf "%s\n" "#define BX_HAVE_SELECT 1" >>confdefs.h

View File

@ -2880,10 +2880,16 @@ case "$target" in
;;
*-mingw32* | *-msys)
BXIMAGE_LINK_OPTS="-luser32"
if test "$enable_static_link" = yes; then
BXIMAGE_LINK_OPTS="${BXIMAGE_LINK_OPTS} -static"
fi
if test "$networking" = yes; then
OPTIONAL_TARGET="$OPTIONAL_TARGET bxhub niclist"
BXHUB_FLAG="-DBXHUB"
BXHUB_LINK_OPTS="-lws2_32"
if test "$enable_static_link" = yes; then
BXHUB_LINK_OPTS="${BXHUB_LINK_OPTS} -static"
fi
fi
AC_DEFINE(BX_HAVE_SELECT, 1)
;;