Last active
July 22, 2018 15:10
-
-
Save geekoff7/21ca1627fb222bd5cfafeab0de0636f6 to your computer and use it in GitHub Desktop.
compile libcpuid shell command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | |
| # in fish shell | |
| echo (pkg-config libcpuid --cflags --libs) | xargs gcc main.c -o program | |
| # in zsh or bash shell | |
| gcc main.c -o program `pkg-config libcpuid --cflags` | |
| export LD_LIBRARY_PATH=/usr/local/lib/ | |
| # run program | |
| ./program |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment