bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] pcre: replace pcre-config with pkg-config


From: Bertrand Jacquin
Subject: [PATCH] pcre: replace pcre-config with pkg-config
Date: Wed, 13 May 2009 20:45:02 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi,

Here is fix to replace configure.in attempt to exec host pcre-config by
a pkg-config method. "Previous" method was not really adapted if you try
to cross-compile grep. If host have pcre-config, it contain host cflags
and ldflags which make linker not happy :

i586-geode-linux-uclibc-gcc  -Os -pipe -march=k6-2 -fomit-frame-pointer
-I/usr/i586-geode-linux-uclibc/usr/include/
-I/usr/i586-geode-linux-uclibc/include/    -o grep  grep.o dfa.o kwset.o
search.o grepmat.o ../lib/libgreputils.a -L/usr/lib64 -Wl,-Bstatic
-lpcre -Wl,-Bdynamic
/usr/libexec/gcc/i586-geode-linux-uclibc/ld: skipping incompatible
/usr/lib64/libpcre.a when searching for -lpcre
/usr/libexec/gcc/i586-geode-linux-uclibc/ld: cannot find -lpcre
collect2: ld returned 1 exit status
make[2]: *** [grep] Error 1

The attached patch are for grep 2.5.1a and 2.5.4.

Thanks,
Bertrand

-- 
Beber

Attachment: grep-2.5.1a-BJA-pcre-pkgconfig.diff
Description: Text Data

Attachment: grep-2.5.4-BJA-pcre-pkgconfig.diff
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]