summaryrefslogtreecommitdiff
path: root/misc/cgo
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo')
-rw-r--r--misc/cgo/gmp/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/cgo/gmp/Makefile b/misc/cgo/gmp/Makefile
index 1e521ab7d..b261ff235 100644
--- a/misc/cgo/gmp/Makefile
+++ b/misc/cgo/gmp/Makefile
@@ -10,6 +10,12 @@ CGOFILES=\
CGO_LDFLAGS=-lgmp
+# To add flags necessary for locating the library or its include files,
+# set CGO_CFLAGS or CGO_LDFLAGS. For example, to use an
+# alternate installation of the library:
+# CGO_CFLAGS=-I/home/rsc/gmp32/include
+# CGO_LDFLAGS+=-L/home/rsc/gmp32/lib
+
# Can have plain GOFILES too, but this example doesn't.
include $(GOROOT)/src/Make.pkg