diff options
author | Dan Riegsecker <1baldgeek@gmail.com> | 2015-05-05 17:57:58 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2015-05-09 17:02:03 (GMT) |
commit | cdbe8f2abf992cf9878c9d91f059dc69d3159b4f (patch) | |
tree | 674b033e7b9a069e19cd2316791b8ea89d40ca80 /src/libgpg_error.mk | |
parent | c8eb1de4e5d0a010eaf43c06cbffbc266e4082cf (diff) | |
download | mxe-cdbe8f2abf992cf9878c9d91f059dc69d3159b4f.zip mxe-cdbe8f2abf992cf9878c9d91f059dc69d3159b4f.tar.gz mxe-cdbe8f2abf992cf9878c9d91f059dc69d3159b4f.tar.bz2 |
Shared build of libgpg_error failing
When building libgpg_error with a target of i686-w64-mingw32.shared
the build fails with undefined references. In the make process for
libgpg_error an application is built and then run called mkheader.
This application is used to build the gpg-error.h file. In this
application there is a strcmp for 'mingw32' on host_os variable
which failes to be true when host_os contains mingw32.shared or
mingw32.static. The failure of this test keep w32-add.h from being
added to gpg-error.h, hence causing the undefined references errors.
This is an attempt to fix this issue, officially issue #677.
Diffstat (limited to 'src/libgpg_error.mk')
-rw-r--r-- | src/libgpg_error.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libgpg_error.mk b/src/libgpg_error.mk index 50478b9..e795411 100644 --- a/src/libgpg_error.mk +++ b/src/libgpg_error.mk @@ -25,6 +25,7 @@ define $(PKG)_BUILD --disable-nls \ --disable-languages $(SED) -i 's/-lgpg-error/-lgpg-error -lintl -liconv/;' '$(1)/src/gpg-error-config' + $(SED) -i 's/host_os = mingw32.*/host_os = mingw32/' '$(1)/src/Makefile' $(MAKE) -C '$(1)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= $(MAKE) -C '$(1)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= ln -sf '$(PREFIX)/$(TARGET)/bin/gpg-error-config' '$(PREFIX)/bin/$(TARGET)-gpg-error-config' |