]> git.pld-linux.org Git - packages/crossmingw32-pcre.git/commitdiff
- fix alpha, sparc auto/ac/crossmingw32-pcre-4_5-2
authorwolf <wolf@pld-linux.org>
Sat, 21 Feb 2004 18:56:38 +0000 (18:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- allow building without wine installed

Changed files:
    crossmingw32-pcre.spec -> 1.4

crossmingw32-pcre.spec

index 3cd2cfec23be545991c3d7e72f832b81452eb003..6ebd79498b12da2e2a6360a98c043e3ff656d68a 100644 (file)
@@ -3,7 +3,7 @@ Summary:        Perl-Compatible Regular Expression library - Mingw32 cross version
 Summary(pl):   Biblioteka perlowych wyra¿eñ regularnych - wersja skro¶na dla Mingw32
 Name:          crossmingw32-%{realname}
 Version:       4.5
-Release:       1
+Release:       2
 License:       Free to use (see LICENCE)
 Group:         Libraries
 Source0:       ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{realname}-%{version}.tar.bz2
@@ -27,6 +27,10 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                __cc            %{target}-gcc
 %define                __cxx           %{target}-g++
 
+%ifarch alpha sparc sparc64 sparcv9
+%define                optflags        -O2
+%endif
+
 %description
 PCRE stands for the Perl Compatible Regular Expression library. It
 contains routines to match text against regular expressions similar to
@@ -69,9 +73,15 @@ TARGET="%{target}" ; export TARGET
 %{__aclocal}
 %{__autoconf}
 %configure \
+       --host=%{_host} \
+       --target=%{target} \
        --enable-utf8 \
        --disable-shared
 
+# we want host binary to generate some tables, not win32 binary
+cc -c %{optflags} -I. dftables.c
+cc %{optflags} -I. -I. -o dftables dftables.o
+
 %{__make}
 %{__make} pcre.dll
 
This page took 0.128086 seconds and 4 git commands to generate.