File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ All the MQI verbs included here return a structure containing
13
13
the CompletionCode and ReasonCode values. If an MQI call returns
14
14
MQCC_FAILED, an error is also returned containing the MQCC/MQRC values as
15
15
a formatted string.
16
+
17
+ The build directives for Windows assume the header and library files have
18
+ been copied to a temporary location, because the default paths are not
19
+ acceptable to Go (it does not like spaces or special characters like ~).
20
+
21
+ The build directives for Linux assume the default MQ installation path
22
+ in /opt/mqm. These would need to be changed in this file if you use a
23
+ non-default path.
16
24
*/
17
25
package ibmmq
18
26
@@ -37,7 +45,7 @@ package ibmmq
37
45
/*
38
46
#cgo !windows CFLAGS: -I/opt/mqm/inc -D_REENTRANT
39
47
#cgo windows CFLAGS: -IC:/temp/mq/include -m64
40
- #cgo !windows LDFLAGS: -L/opt/mqm/lib64 -lmqm_r
48
+ #cgo !windows LDFLAGS: -L/opt/mqm/lib64 -lmqm_r -Wl,-rpath=/opt/mqm/lib64
41
49
#cgo windows LDFLAGS: -L "C:/temp/mq/bin64" -lmqm -m64
42
50
43
51
#include <stdlib.h>
You can’t perform that action at this time.
0 commit comments