]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
pth: Fix build on ARM.
authorArne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Sat, 10 Dec 2011 13:27:56 +0000 (14:27 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Dec 2011 13:27:56 +0000 (14:27 +0100)
Fixes #300.

pth/patches/pth-2.0.5-parallelfix.patch0 [new file with mode: 0644]
pth/pth.nm

diff --git a/pth/patches/pth-2.0.5-parallelfix.patch0 b/pth/patches/pth-2.0.5-parallelfix.patch0
new file mode 100644 (file)
index 0000000..a305f59
--- /dev/null
@@ -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
index 832d2abbc58e28ab8a6ad55d72f5c6aa86f96298..61edc96a3ee9344963f4ced45da9b1070d1f8d1b 100644 (file)
@@ -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