From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WQvrG-0006u6-Ei for ptxdist@pengutronix.de; Fri, 21 Mar 2014 10:35:23 +0100 Received: by mail-ee0-f42.google.com with SMTP id d17so1573344eek.15 for ; Fri, 21 Mar 2014 02:35:17 -0700 (PDT) From: Alexander Aring Date: Fri, 21 Mar 2014 10:35:09 +0100 Message-Id: <1395394509-26734-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH v2] libgmp: always build shared library 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 Cc: Alexander Aring This patch drops the config for shared or static library build of libgmp. Instead we build always libgmp as a shared library. This fix also an issue with a missing -fPIC if we build the static library. Signed-off-by: Alexander Aring --- changes since v2: - remove the rest of patches from the other series since we are sure we can drop the static library support. This makes the handling of libraries much easier. rules/libgmp.in | 20 +------------------- rules/libgmp.make | 10 +++------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/rules/libgmp.in b/rules/libgmp.in index b7127f3..ec063ad 100644 --- a/rules/libgmp.in +++ b/rules/libgmp.in @@ -2,28 +2,10 @@ # # rules/libgmp.in # -menuconfig LIBGMP +config LIBGMP tristate prompt "libgmp " help Compiles the GNU Multiprecision libraries for your target system. See http://gmplib.org/ for info about it. - -if LIBGMP - -config LIBGMP_SHARED - bool - default y - prompt "Create shared library" - help - Create a shared library and install it into /usr/lib - -config LIBGMP_STATIC - bool - prompt "Create static link library" - help - Create a static link library and install it into /usr/lib. - Normally not needed. - -endif diff --git a/rules/libgmp.make b/rules/libgmp.make index 8e3b356..3c6b01c 100644 --- a/rules/libgmp.make +++ b/rules/libgmp.make @@ -38,8 +38,8 @@ LIBGMP_ENV := $(CROSS_ENV) # LIBGMP_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ - --$(call ptx/endis, PTXCONF_LIBGMP_SHARED)-shared \ - --$(call ptx/endis, PTXCONF_LIBGMP_STATIC)-static + --enable-shared \ + --disable-static # ---------------------------------------------------------------------------- # Target-Install @@ -54,12 +54,8 @@ $(STATEDIR)/libgmp.targetinstall: @$(call install_fixup, libgmp,AUTHOR,"Carsten Schlote ") @$(call install_fixup, libgmp,DESCRIPTION,missing) -ifdef PTXCONF_LIBGMP_SHARED @$(call install_lib, libgmp, 0, 0, 0644, libgmp) -endif -ifdef PTXCONF_LIBGMP_STATIC - @$(call install_copy, libgmp, 0, 0, 0644, -, /usr/lib/libgmp.la) -endif + @$(call install_finish, libgmp) @$(call touch) -- 1.9.1 -- ptxdist mailing list ptxdist@pengutronix.de