mirror of https://github.com/k3s-io/k3s
commit
4afc14df0c
|
@ -2,6 +2,7 @@ package cmds
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/rancher/k3s/pkg/version"
|
"github.com/rancher/k3s/pkg/version"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -12,6 +13,13 @@ var (
|
||||||
debug bool
|
debug bool
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// hack - force "file,dns" lookup order if go dns is used
|
||||||
|
if os.Getenv("RES_OPTIONS") == "" {
|
||||||
|
os.Setenv("RES_OPTIONS", " ")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func NewApp() *cli.App {
|
func NewApp() *cli.App {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = appName
|
app.Name = appName
|
||||||
|
|
|
@ -33,7 +33,7 @@ fi
|
||||||
STATIC_SQLITE="
|
STATIC_SQLITE="
|
||||||
-extldflags '-static -lm -ldl -lz -lpthread $DQLITE_STATIC_SQLITE'
|
-extldflags '-static -lm -ldl -lz -lpthread $DQLITE_STATIC_SQLITE'
|
||||||
"
|
"
|
||||||
TAGS="ctrd apparmor seccomp no_btrfs netgo osusergo providerless $DQLITE_TAGS"
|
TAGS="ctrd apparmor seccomp no_btrfs netcgo osusergo providerless $DQLITE_TAGS"
|
||||||
|
|
||||||
if [ "$STATIC_BUILD" != "true" ]; then
|
if [ "$STATIC_BUILD" != "true" ]; then
|
||||||
STATIC="
|
STATIC="
|
||||||
|
|
Loading…
Reference in New Issue