libnet: force PIC compilation to allow usage as dynamically linked library

This commit is contained in:
Thomas Penteker 2012-01-24 08:39:55 +01:00
parent 4b159f6e45
commit 08841a969f

View File

@ -5,12 +5,15 @@
name=libnet
version=1.1.2.1
release=1
release=2
source=(ftp://ftp.eenet.ee/pub/FreeBSD/distfiles/$name-$version.tar.gz)
build() {
cd $name
cd $name
export CFLAGS=$CFLAGS" -fPIC"
./configure --prefix=/usr
sed -i 's/ sample//g' Makefile
make
make DESTDIR=$PKG install
install -D -m 755 libnet-config $PKG/usr/bin/libnet-config