Skip to content

Commit 025c011

Browse files
kolyshkinpcmoore
authored andcommitted
all: rm duplicated cgo stuff
1. Only a single per-package #cgo directive is needed to link it against libseccomp with proper flags, and it is provided in seccomp_internal.go. Drop the duplicate. 2. Drop the comments telling how to link against a particular libseccomp version, as those are also available in seccomp_internal.go. Signed-off-by: Kir Kolyshkin <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent b7f8e32 commit 025c011

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

seccomp.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ import (
1616
"unsafe"
1717
)
1818

19-
// C wrapping code
20-
21-
// To compile libseccomp-golang against a specific version of libseccomp:
22-
// cd ../libseccomp && mkdir -p prefix
23-
// ./configure --prefix=$PWD/prefix && make && make install
24-
// cd ../libseccomp-golang
25-
// PKG_CONFIG_PATH=$PWD/../libseccomp/prefix/lib/pkgconfig/ make
26-
// LD_PRELOAD=$PWD/../libseccomp/prefix/lib/libseccomp.so.2.5.0 PKG_CONFIG_PATH=$PWD/../libseccomp/prefix/lib/pkgconfig/ make test
27-
28-
// #cgo pkg-config: libseccomp
2919
// #include <stdlib.h>
3020
// #include <seccomp.h>
3121
import "C"

0 commit comments

Comments
 (0)