ncurses: Do not pass both -fPIC and -fpic
This commit is contained in:
parent
073faf0741
commit
e5a18fdcf6
@ -9,9 +9,8 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ncurses
|
PKG_NAME:=ncurses
|
||||||
PKG_VERSION:=6.1
|
PKG_VERSION:=6.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
||||||
PKG_HASH:=aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17
|
PKG_HASH:=aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17
|
||||||
@ -41,7 +40,7 @@ define Package/libncurses
|
|||||||
URL:=http://www.gnu.org/software/ncurses/
|
URL:=http://www.gnu.org/software/ncurses/
|
||||||
PROVIDES:=libncursesw
|
PROVIDES:=libncursesw
|
||||||
DEPENDS:= +terminfo
|
DEPENDS:= +terminfo
|
||||||
ABI_VERSION:=$(PKG_VERSION)
|
ABI_VERSION:=6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libncurses-dev
|
define Package/libncurses-dev
|
||||||
@ -76,6 +75,11 @@ CONFIGURE_ARGS += \
|
|||||||
--enable-widec \
|
--enable-widec \
|
||||||
--with-build-cppflags=-D_GNU_SOURCE
|
--with-build-cppflags=-D_GNU_SOURCE
|
||||||
|
|
||||||
|
CONFIGURE_VARS += \
|
||||||
|
cf_try_fPIC=no
|
||||||
|
|
||||||
|
HOST_CFLAGS += $(HOST_FPIC)
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS += \
|
HOST_CONFIGURE_ARGS += \
|
||||||
--without-cxx \
|
--without-cxx \
|
||||||
--without-cxx-binding \
|
--without-cxx-binding \
|
||||||
@ -127,8 +131,10 @@ endef
|
|||||||
define Package/libncurses/install
|
define Package/libncurses/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
for lib in ncurses panel menu form; do \
|
for lib in ncurses panel menu form; do \
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$$$${lib}w.so* $(1)/usr/lib/; \
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$$$${lib}w.so.* $(1)/usr/lib/; \
|
||||||
ln -s lib$$$${lib}w.so $(1)/usr/lib/lib$$$${lib}.so; \
|
for so in $(1)/usr/lib/lib$$$${lib}w.so.*; do \
|
||||||
|
ln -s $$$${so##*/} $$$${so%w.so*}.so$$$${so##*w.so}; \
|
||||||
|
done; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -146,7 +152,9 @@ endef
|
|||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
||||||
for lib in ncurses panel menu form; do \
|
for lib in ncurses panel menu form; do \
|
||||||
ln -s lib$$$${lib}w.so $(1)/usr/lib/lib$$$${lib}.so; \
|
for so in $(1)/usr/lib/lib$$$${lib}w.so*; do \
|
||||||
|
ln -s $$$${so##*/} $$$${so%w.so*}.so$$$${so##*w.so}; \
|
||||||
|
done; \
|
||||||
done
|
done
|
||||||
ln -s . $(1)/usr/include/ncursesw
|
ln -s . $(1)/usr/include/ncursesw
|
||||||
$(TARGET_CROSS)ar rc $(1)/usr/lib/libtinfo.a
|
$(TARGET_CROSS)ar rc $(1)/usr/lib/libtinfo.a
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
--- a/aclocal.m4
|
||||||
|
+++ b/aclocal.m4
|
||||||
|
@@ -451,7 +451,7 @@ AC_REQUIRE([CF_PROG_AR])
|
||||||
|
|
||||||
|
AC_CACHE_CHECK(for options to update archives, cf_cv_ar_flags,[
|
||||||
|
cf_cv_ar_flags=unknown
|
||||||
|
- for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
|
||||||
|
+ for cf_ar_flags in -curvD -curv curv -crv crv -cqv cqv -rv rv
|
||||||
|
do
|
||||||
|
|
||||||
|
# check if $ARFLAGS already contains this choice
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -4503,7 +4503,7 @@ if test "${cf_cv_ar_flags+set}" = set; t
|
||||||
|
else
|
||||||
|
|
||||||
|
cf_cv_ar_flags=unknown
|
||||||
|
- for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
|
||||||
|
+ for cf_ar_flags in -curvD -curv curv -crv crv -cqv cqv -rv rv
|
||||||
|
do
|
||||||
|
|
||||||
|
# check if $ARFLAGS already contains this choice
|
Loading…
x
Reference in New Issue
Block a user