Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added /usr/local/include/ykpiv to CGO include path for Linux #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
#include <stdlib.h>
*/
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
*/
import "C"
Expand Down
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
#include <stdlib.h>
*/
Expand Down
2 changes: 1 addition & 1 deletion pivman.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
#include <stdlib.h>
*/
Expand Down
2 changes: 1 addition & 1 deletion sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
#include <stdlib.h>
*/
Expand Down
2 changes: 1 addition & 1 deletion slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#include <ykpiv.h>
#include <stdlib.h>
*/
Expand Down
2 changes: 1 addition & 1 deletion ykpiv.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package ykpiv
#cgo darwin LDFLAGS: -L /usr/local/lib -lykpiv
#cgo darwin CFLAGS: -I/usr/local/include/ykpiv/
#cgo linux LDFLAGS: -lykpiv -Wl,--allow-multiple-definition
#cgo linux CFLAGS: -I/usr/include/ykpiv/
#cgo linux CFLAGS: -I/usr/local/include/ykpiv/ -I/usr/include/ykpiv/
#cgo windows CFLAGS: -I./win/include/ykpiv/
#cgo windows LDFLAGS: ./win/lib/libykpiv.dll.a
#include <ykpiv.h>
Expand Down