From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cl-420.ede-01.nl.sixxs.net ([2001:7b8:2ff:1a3::2] helo=fischmarkt.penguin.de ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzfT-0002vc-1z for ptxdist@pengutronix.de; Mon, 28 May 2012 15:07:30 +0200 Received: from mail-wg0-f50.google.com ([74.125.82.50]) by fischmarkt.penguin.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIN-000109-5b for ptxdist@pengutronix.de; Mon, 28 May 2012 14:44:02 +0200 Received: by wgbds11 with SMTP id ds11so2204159wgb.7 for ; Mon, 28 May 2012 05:43:29 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:57 +0200 Message-Id: <1338208981-8681-31-git-send-email-bartvdrmeulen@gmail.com> Subject: [ptxdist] [PATCH] argtables2: fix building and installing for mingw Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de From: "Bart vdr. Meulen" Update argtables2 packet so that it builds a dynamic library (dll) for windows. This is done by telling libtool that argtables will not have undefined symbol, which is the case for the windows dll. (otherwise libtool will assume unresolved symbols and disable dynamic libraries on mingw) update the rule file so that the dll is installed in the target sysroot Signed-off-by: Bart vdr. Meulen --- .../0001-build-shared-lib-for-mingw.patch | 31 ++++++++++++++++++++ patches/argtable2-12/series | 1 + rules/argtable2.make | 4 +++ 3 files changed, 36 insertions(+) create mode 100644 patches/argtable2-12/0001-build-shared-lib-for-mingw.patch create mode 100644 patches/argtable2-12/series diff --git a/patches/argtable2-12/0001-build-shared-lib-for-mingw.patch b/patches/argtable2-12/0001-build-shared-lib-for-mingw.patch new file mode 100644 index 0000000..e5fb776 --- /dev/null +++ b/patches/argtable2-12/0001-build-shared-lib-for-mingw.patch @@ -0,0 +1,31 @@ +--- + src/Makefile.am | 2 +- + src/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +Index: argtable2-12/src/Makefile.am +=================================================================== +--- argtable2-12.orig/src/Makefile.am ++++ argtable2-12/src/Makefile.am +@@ -17,7 +17,7 @@ libargtable2_la_SOURCES = argtable2.c ar + # argtable-2.10 is 1:5:1 (minor tweaks to configuration and documentation, src code is identical to argtable-2.8) + # argtable-2.11 is 1:6:1 (minor tweaks to makefiles, src code is identical to argtable-2.8) + # argtable-2.12 is 1:7:1 (added support for parsing hex,octal,binary integer formats) +-libargtable2_la_LDFLAGS = -version-info 1:7:1 ++libargtable2_la_LDFLAGS = -version-info 1:7:1 -no-undefined + + include_HEADERS = argtable2.h + +Index: argtable2-12/src/Makefile.in +=================================================================== +--- argtable2-12.orig/src/Makefile.in ++++ argtable2-12/src/Makefile.in +@@ -232,7 +232,7 @@ libargtable2_la_SOURCES = argtable2.c ar + # argtable-2.10 is 1:5:1 (minor tweaks to configuration and documentation, src code is identical to argtable-2.8) + # argtable-2.11 is 1:6:1 (minor tweaks to makefiles, src code is identical to argtable-2.8) + # argtable-2.12 is 1:7:1 (added support for parsing hex,octal,binary integer formats) +-libargtable2_la_LDFLAGS = -version-info 1:7:1 ++libargtable2_la_LDFLAGS = -version-info 1:7:1 -no-undefined + include_HEADERS = argtable2.h + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-am diff --git a/patches/argtable2-12/series b/patches/argtable2-12/series new file mode 100644 index 0000000..b7a27e1 --- /dev/null +++ b/patches/argtable2-12/series @@ -0,0 +1 @@ +0001-build-shared-lib-for-mingw.patch diff --git a/rules/argtable2.make b/rules/argtable2.make index 124d37b..7e8661a 100644 --- a/rules/argtable2.make +++ b/rules/argtable2.make @@ -60,7 +60,11 @@ $(STATEDIR)/argtable2.targetinstall: @$(call install_fixup, argtable2,AUTHOR,"Robert Schwebel ") @$(call install_fixup, argtable2,DESCRIPTION,missing) +ifdef PTXCONF_ARCH_MINGW + @$(call install_copy, argtable2, 0, 0, 0644, -, /usr/bin/libargtable2-0.dll) +else @$(call install_lib, argtable2, 0, 0, 0644, libargtable2) +endif @$(call install_finish, argtable2) -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de