1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-02-12 20:24:05 +00:00

Fix issue #108: Hints for building on NetBSD

Add @brucelilly's suggestions to the Readme
This commit is contained in:
Veselin Georgiev 2018-04-16 10:45:15 +03:00
parent e93afea7f2
commit aa28586183

View file

@ -11,7 +11,7 @@ as the full [API reference](http://libcpuid.sf.net/doxy).
Configuring after checkout
--------------------------
Under linux, where you download the sources, there's no
Under Linux, where you download the sources, there's no
configure script to run. This is because it isn't a good practice to keep
such scripts in a source control system. To create it, you need to run the
following commands once, after you checkout the libcpuid sources
@ -28,6 +28,22 @@ the library.
`make dist` will create a tarball (with "configure" inside) with the
sources.
Prerequisites
-------------
Using libcpuid requires no dependencies on any of the supported OSes.
Building it requires the aforementioned libtool and autotools commands
to be available, which is a matter of installing a few common packages
with related names (e.g. automake, autoconf, libtool).
It also requires a POSIX-compatible shell. On NetBSD, you may need
to install one (credits to @brucelilly):
1. Install a POSIX-compatible shell such as ksh93
(pkg_add ast-ksh || pkgin in ast-ksh)
2. export CONFIG_SHELL=/usr/pkg/bin/ksh93 (substitute the
correct path if required)
3. Follow the regular Linux instructions
Testing
-------