From 33c11d8ec9bc8f6ee4b552516d0e46b9c0ea14d0 Mon Sep 17 00:00:00 2001 From: Markham Date: Sat, 28 Nov 2015 13:29:51 +0100 Subject: [PATCH] add target libflex(2.5.35) needed for unfsd --- make/archives.mk | 4 ++++ make/libraries.mk | 12 ++++++++++++ make/versions.mk | 3 +++ 3 files changed, 19 insertions(+) diff --git a/make/archives.mk b/make/archives.mk index 92dc816..aaed46f 100755 --- a/make/archives.mk +++ b/make/archives.mk @@ -205,6 +205,10 @@ $(ARCHIVE)/ntp-$(NTP_VER).tar.gz: $(ARCHIVE)/portmap-$(PORTMAP_VER).tgz: $(WGET) http://fossies.org/linux/misc/old/portmap-$(PORTMAP_VER).tgz +$(ARCHIVE)/flex-$(FLEX_VER).tar.gz: + $(WGET) https://uncwddas.googlecode.com/files/flex-$(FLEX_VER).tar.gz + + $(ARCHIVE)/crosstool-1.16.0-downloads.tar.bz2: $(WGET) http://www.fhloston-paradise.de/crosstool-ng-1.16.0.tar.bz2 $(WGET) http://www.fhloston-paradise.de/eglibc-2_13.tar.bz2 diff --git a/make/libraries.mk b/make/libraries.mk index a0e142c..2472698 100755 --- a/make/libraries.mk +++ b/make/libraries.mk @@ -730,3 +730,15 @@ $(D)/lua: $(D)/libncurses $(ARCHIVE)/lua-$(LUA_VER).tar.gz | $(TARGETPREFIX) rm -rf $(TARGETPREFIX)/bin/luac $(REMOVE)/lua-$(LUA_VER) $(TARGETPREFIX)/.remove touch $@ + +$(D)/libflex: $(ARCHIVE)/flex-$(FLEX_VER).tar.gz + $(UNTAR)/flex-$(FLEX_VER).tar.gz + set -e; cd $(BUILD_TMP)/flex-$(FLEX_VER); \ + echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache; \ + echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache; \ + $(CONFIGURE) -C --host=$(TARGET) --target=$(TARGET) --prefix= --bindir=/.remove --mandir=/.remove --infodir=/.remove --disable-nls; \ + $(MAKE); \ + $(MAKE) install DESTDIR=$(TARGETPREFIX) + rm -fr $(TARGETPREFIX)/.remove + $(REMOVE)/flex-$(FLEX_VER) + touch $@ diff --git a/make/versions.mk b/make/versions.mk index e006436..599a832 100644 --- a/make/versions.mk +++ b/make/versions.mk @@ -11,6 +11,9 @@ E2FSPROGS_VER=1.42.13 # C library for parsing XML EXPAT_VER = 2.1.0 +# FLEX (the fast lexical analyser) +FLEX_VER=2.5.35 + # libjpeg-turbo; a derivative of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression JPEG_TURBO_VER = 1.4.2 -- 2.39.5