summaryrefslogtreecommitdiff
path: root/libnet
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2012-01-24 08:39:55 +0100
committerThomas Penteker <tek@serverop.de>2012-01-24 08:39:55 +0100
commit08841a969f81406b35ca0c21823b93989f6dea11 (patch)
tree05c444f8720d2281ac21c4fea210248b48a51f5f /libnet
parent4b159f6e459d840a2005af6d67995dd4b8310f40 (diff)
downloadcontrib-08841a969f81406b35ca0c21823b93989f6dea11.tar.gz
contrib-08841a969f81406b35ca0c21823b93989f6dea11.tar.xz
libnet: force PIC compilation to allow usage as dynamically linked library
Diffstat (limited to 'libnet')
-rw-r--r--libnet/Pkgfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/libnet/Pkgfile b/libnet/Pkgfile
index 0baa841b4..cec0216c3 100644
--- a/libnet/Pkgfile
+++ b/libnet/Pkgfile
@@ -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

Generated by cgit