From cdbe8f2abf992cf9878c9d91f059dc69d3159b4f Mon Sep 17 00:00:00 2001 From: Dan Riegsecker <1baldgeek@gmail.com> Date: Tue, 5 May 2015 13:57:58 -0400 Subject: 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. --- src/libgpg_error.mk | 1 + 1 file changed, 1 insertion(+) 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' -- cgit v0.12