Switch to fetching linker flags from pkg-config
Signed-off-by: Mihai-Drosi Câju <mcaju@cisco.com>
Mihai-Drosi Câju
4 years ago
5 | 5 |
|
6 | 6 |
package lxc
|
7 | 7 |
|
8 | |
// #cgo LDFLAGS: -llxc -lutil
|
|
8 |
// #cgo pkg-config: lxc
|
9 | 9 |
import "C"
|
5 | 5 |
|
6 | 6 |
package lxc
|
7 | 7 |
|
8 | |
// #cgo LDFLAGS: -static -llxc -lseccomp -lutil -lcap
|
|
8 |
// #cgo pkg-config: --static lxc
|
|
9 |
// #cgo LDFLAGS: -static
|
9 | 10 |
import "C"
|
5 | 5 |
|
6 | 6 |
package lxc
|
7 | 7 |
|
8 | |
// #cgo pkg-config: lxc
|
9 | 8 |
// #include <lxc/lxccontainer.h>
|
10 | 9 |
// #include <lxc/version.h>
|
11 | 10 |
// #include "lxc-binding.h"
|