diff options
Diffstat (limited to 'base/pcre/Pkgfile')
-rwxr-xr-x | base/pcre/Pkgfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/base/pcre/Pkgfile b/base/pcre/Pkgfile index 305423643..c2d870e4a 100755 --- a/base/pcre/Pkgfile +++ b/base/pcre/Pkgfile @@ -5,14 +5,16 @@ # Depends on: name=pcre -version=8.10 +version=8.11 release=1 source=( http://downloads.sourceforge.net/$name/$name-$version.tar.bz2 ) build() { - cd $name-$version + + [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" + ./configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -24,4 +26,9 @@ build() { make make DESTDIR=$PKG install rm -rf $PKG/usr/share/doc + + # grep uses pcre, so we need the libs in /lib + install -dm755 $PKG/lib + cp -a $PKG/usr/lib/libpcre.so.* $PKG/lib/ + ln -sf ../../lib/libpcre.so.0 $PKG/usr/lib/libpcre.so } |