Browse Source

fix build on MacOS X, static compiling of hosttools is not possible

Waldemar Brodkorb 14 years ago
parent
commit
06b3c25fea
2 changed files with 18 additions and 6 deletions
  1. 7 6
      package/ncurses/Makefile
  2. 11 0
      package/ncurses/patches/patch-progs_Makefile_in

+ 7 - 6
package/ncurses/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		ncurses
 PKG_VERSION:=		5.7
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		cce05daf61a64501ef6cd8da1f727ec6
 PKG_DESCR:=		a terminal handling library
 PKG_SECTION:=		libs
@@ -48,19 +48,20 @@ CONFIGURE_ARGS+=	--without-cxx \
 ALL_TARGET:=		libs
 INSTALL_TARGET:=	install.libs install.data
 
-ifeq (${ADK_HOST_CYGWIN},y)
-CONFOPT:=		--with-shared
-endif
-
 pre-configure:
+	# create tic host binary
 	(cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
 		./configure \
-		${CONFOPT} \
+		--with-shared \
 		--with-build-cc=${HOSTCC} \
 		--with-progs \
+		--without-debug \
+		--without-profile \
 	);
 	${MAKE} -C ${WRKBUILD}/include
 	${MAKE} -C ${WRKBUILD}/progs
+	find ${WRKBUILD} -name *.o -exec rm {} \;
+	find ${WRKBUILD} -name *.a -exec rm {} \;
 
 post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
 	# this is installed as libncurses - make libcurses a "link"

+ 11 - 0
package/ncurses/patches/patch-progs_Makefile_in

@@ -0,0 +1,11 @@
+--- ncurses-5.7.orig/progs/Makefile.in	2008-09-07 15:58:55.000000000 +0200
++++ ncurses-5.7/progs/Makefile.in	2010-07-26 17:44:33.000000000 +0200
+@@ -109,7 +109,7 @@ LDFLAGS_SHARED	= $(LDFLAGS) $(CFLAGS_SHA
+ 
+ LDFLAGS_DEFAULT	= $(LDFLAGS_@DFT_UPR_MODEL@)
+ 
+-LIBS_TIC	= @LDFLAGS_STATIC@ @TICS_ARGS@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
++LIBS_TIC	= ../lib/libncurses.a
+ LDFLAGS_TIC	= $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TIC)
+ 
+ LIBS_TINFO	= @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@