diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-03-21 10:35:09 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-03-28 11:29:45 +0100 |
commit | 139ccde8e9e808476dc5347859ca4f0d2e3b95a6 (patch) | |
tree | afc7038acf2e4b81f72931658a7f8a7b59155f4d /rules/libgmp.make | |
parent | 2d97518bb8d6e0781752a56ac5018147d9635b4d (diff) | |
download | ptxdist-139ccde8e9e808476dc5347859ca4f0d2e3b95a6.tar.gz ptxdist-139ccde8e9e808476dc5347859ca4f0d2e3b95a6.tar.xz |
libgmp: always build shared library
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 <alex.aring@gmail.com>
[mol: some cleanup]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libgmp.make')
-rw-r--r-- | rules/libgmp.make | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/rules/libgmp.make b/rules/libgmp.make index 8e3b356b7..8c24c4ac1 100644 --- a/rules/libgmp.make +++ b/rules/libgmp.make @@ -30,16 +30,14 @@ LIBGMP_LICENSE := GPLv3, LGPLv3 # Prepare # ---------------------------------------------------------------------------- -LIBGMP_PATH := PATH=$(CROSS_PATH) -LIBGMP_ENV := $(CROSS_ENV) - # # autoconf # -LIBGMP_AUTOCONF := \ +LIBGMP_CONF_TOOL := autoconf +LIBGMP_CONF_OPT := \ $(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 +52,8 @@ $(STATEDIR)/libgmp.targetinstall: @$(call install_fixup, libgmp,AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>") @$(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) |