forked from pool/libguestfs
dbfab7d3-build-fix-includedir-in-uninstalled-libguestfs.pc.patch bfd08867-golang-Fix-path-to-include-guestfs.h..patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=461
25 lines
701 B
Diff
25 lines
701 B
Diff
Subject: golang: Fix path to include/guestfs.h.
|
|
From: Richard W.M. Jones rjones@redhat.com Tue Oct 6 15:25:32 2020 +0100
|
|
Date: Tue Oct 6 15:26:14 2020 +0100:
|
|
Git: bfd0886765fef19a8c7313402f882b543a7dfb6d
|
|
|
|
Thanks: Martin Kletzander
|
|
Fixes: commit 75abec1f706e555cd6c9915be03c732b56a94596
|
|
|
|
diff --git a/run.in b/run.in
|
|
index 90552fb04..10844a651 100755
|
|
--- a/run.in
|
|
+++ b/run.in
|
|
@@ -181,9 +181,9 @@ export GOLANG="@GOLANG@"
|
|
prepend GOPATH "$b/golang"
|
|
export GOPATH
|
|
if [ -z "$CGO_CFLAGS" ]; then
|
|
- CGO_CFLAGS="-I$s/lib"
|
|
+ CGO_CFLAGS="-I$s/include"
|
|
else
|
|
- CGO_CFLAGS="$CGO_CFLAGS -I$s/lib"
|
|
+ CGO_CFLAGS="$CGO_CFLAGS -I$s/include"
|
|
fi
|
|
export CGO_CFLAGS
|
|
if [ -z "$CGO_CFLAGS_ALLOW" ]; then
|