1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Don't link with msrdriver.c on non-Windows platform. (#159)

This simplify the procedure of sanitizing unneeded blob in source.
This commit is contained in:
Zhu Zihao 2022-01-14 16:35:10 +08:00 committed by GitHub
commit 2e61160983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View file

@ -56,6 +56,17 @@ if test "x$GCC" = "xyes"; then
AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
fi
AC_CANONICAL_HOST
build_windows=no
case "${host_os}" in
cygwin*|mingw*)
build_windows=yes
;;
esac
AM_CONDITIONAL([WINDOWS], [test "$build_windows" = "yes"])
AC_SUBST(AM_CPPFLAGS)
AC_SUBST(AM_LDFLAGS)