Skip to content

Commit a7f5d93

Browse files
committed
Update Windows build info
1 parent 97ce922 commit a7f5d93

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
Newest updates are at the top of this file.
33

4+
## Aug 07 2020 - v5.1.1
5+
* ibmmq - Fix STS structure (#146)
6+
* Add flag for Windows build that seems no longer to be automatically set by cgo
7+
48
## Jul 23 2020 - v5.1.0
59
* Update for MQ 9.2.0
610
* mqmetric - Add explicit client configuration options
@@ -9,13 +13,13 @@ Newest updates are at the top of this file.
913
## June 1 2020 - v5.0.0
1014
* Migration for Go modules (requires new major number) (#138)
1115
* ibmmq - Add all string mapping functions from cmqstrc (#142)
12-
* ibmmq - Add AIX platform header
16+
* ibmmq - Add AIX platform header
1317
* mqmetric - Permit selection of which statistics to gather for STATQ (ibm-messaging/mq-metric-samples#34)
1418
* mqmetric - Do not try to subscribe to application resource statistics (STATAPP) for now
1519
* mqmetric - Add QFile usage status available from MQ 9.1.5
1620

1721
## Apr 02 2020 - v4.1.4
18-
* Update for MQ 9.1.5
22+
* Update for MQ 9.1.5
1923
* ibmmq - Add message and header compression for MQCD (#137)
2024
* ibmmq - Set endianness just once (#140)
2125
* mqmetric - Add better diagnostics when running out of object handles

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export CGO_LDFLAGS_ALLOW="-Wl,-rpath.*"
7878
### Windows
7979

8080
* Install the Go runtime and compiler. On Windows, the common directory is `c:\Go`
81-
* Ensure you have a gcc-based compiler, for example from the Cygwin distribution.
82-
I recommend you use the mingw variation, to ensure compiled code can be used on systems without Cygwin installed.
81+
* Ensure you have a gcc-based compiler. The variant that now seems to be recommended for cgo is
82+
the [tdm-gcc-64](https://jmeubank.github.io/tdm-gcc/download/) 64-bit compiler suite.
8383
The default `gcc` compiler from Cygwin does not work because it tries to build a
8484
Cygwin-enabled executable but the MQ libraries do not work in that model;
8585
the `mingw` versions build Windows-native programs.

ibmmq/mqi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ package ibmmq
4343
/*
4444
#cgo !windows,!aix CFLAGS: -I/opt/mqm/inc -D_REENTRANT
4545
#cgo aix CFLAGS: -I/usr/mqm/inc -D_REENTRANT
46-
#cgo windows CFLAGS: -I"C:/Program Files/IBM/MQ/Tools/c/include"
46+
#cgo windows CFLAGS: -I"C:/Program Files/IBM/MQ/Tools/c/include" -D_WIN64
4747
#cgo !windows,!aix,!darwin LDFLAGS: -L/opt/mqm/lib64 -lmqm_r -Wl,-rpath,/opt/mqm/lib64 -Wl,-rpath,/usr/lib64
4848
#cgo darwin LDFLAGS: -L/opt/mqm/lib64 -lmqm_r -Wl,-rpath,/opt/mqm/lib64 -Wl,-rpath,/usr/lib64
4949
#cgo aix LDFLAGS: -L/usr/mqm/lib64 -lmqm_r

mqmetric/discover.go

100755100644
File mode changed.

0 commit comments

Comments
 (0)