mirror of https://github.com/perkeep/perkeep.git
Merge "Not finding pkg-config shouldn't be fatal on OS X."
This commit is contained in:
commit
bc5edb9011
7
make.go
7
make.go
|
@ -484,6 +484,13 @@ func haveSQLite() bool {
|
||||||
}
|
}
|
||||||
_, err := exec.LookPath("pkg-config")
|
_, err := exec.LookPath("pkg-config")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
// OS X usually doesn't have pkg-config installed. Don't
|
||||||
|
// call Fatalf() so that the nicer error message in main()
|
||||||
|
// can be printed.
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
log.Fatalf("No pkg-config found. Can't determine whether sqlite3 is available, and where.")
|
log.Fatalf("No pkg-config found. Can't determine whether sqlite3 is available, and where.")
|
||||||
}
|
}
|
||||||
cmd := exec.Command("pkg-config", "--libs", "sqlite3")
|
cmd := exec.Command("pkg-config", "--libs", "sqlite3")
|
||||||
|
|
Loading…
Reference in New Issue