From: Arne Fitzenreiter Date: Sat, 10 Dec 2011 13:27:56 +0000 (+0100) Subject: pth: Fix build on ARM. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1bb8428d3dc4a2e8b46ce930aaa22770344d54d;p=ipfire-3.x.git pth: Fix build on ARM. Fixes #300. --- diff --git a/pth/patches/pth-2.0.5-parallelfix.patch0 b/pth/patches/pth-2.0.5-parallelfix.patch0 new file mode 100644 index 000000000..a305f5933 --- /dev/null +++ b/pth/patches/pth-2.0.5-parallelfix.patch0 @@ -0,0 +1,15 @@ +--- Makefile.in.orig 2005-11-08 05:58:55.000000000 +1100 ++++ Makefile.in 2005-11-08 06:29:02.000000000 +1100 +@@ -148,10 +148,9 @@ + + # be aware of libtool when building the objects + .SUFFIXES: +-.SUFFIXES: .c .o .lo +-.c.o: ++%.o: %.c $(TARGET_PREQ) + $(CC) -c $(CPPFLAGS) $(CFLAGS) $< +-.c.lo: ++%.lo: %.c $(TARGET_PREQ) + $(LIBTOOL) --mode=compile --quiet $(CC) -c $(CPPFLAGS) $(CFLAGS) $< + + # the default target diff --git a/pth/pth.nm b/pth/pth.nm index 832d2abbc..61edc96a3 100644 --- a/pth/pth.nm +++ b/pth/pth.nm @@ -5,7 +5,7 @@ name = pth version = 2.0.7 -release = 1 +release = 2 groups = System/Libraries url = http://www.gnu.org/software/pth @@ -19,19 +19,24 @@ description applications. end -source_dl = +source_dl = ftp://ftp.gnu.org/gnu/pth/ build requires libtool end - PARALLELISMFLAGS = # No parallel build - configure_options += \ --disable-static \ --mandir=/usr/share/man + if "%{DISTRO_ARCH}" == "armv5tel" + configure_options += \ + --with-mctx-mth=sjlj \ + --with-mctx-dsp=ssjlj \ + --with-mctx-stk=sas + end + test make check end @@ -39,8 +44,7 @@ end packages package %{name} - end - + package %{name}-devel template DEVEL end