From 62791feb957d2147d605bd61897bffea9d755ad4 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Sun, 25 May 2014 15:49:10 +1000 Subject: rtmpdump: enable CFLAGS use --- rtmpdump/Pkgfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rtmpdump/Pkgfile') diff --git a/rtmpdump/Pkgfile b/rtmpdump/Pkgfile index 1fed67a48..9d5d20660 100644 --- a/rtmpdump/Pkgfile +++ b/rtmpdump/Pkgfile @@ -10,7 +10,7 @@ release=1 source=(http://crux.ster.so/distfiles/$name/$name-${version}_p20131018.tar.gz) build() { - sed -i 's/\$(MAKEFLAGS)//g' Makefile + #sed -i 's/\$(MAKEFLAGS)//g' Makefile sed -i \ -e 's|OPT=|&-fPIC |' \ @@ -21,7 +21,15 @@ build() { install -d $PKG/usr/lib - make CRYPTO=OPENSSL SYS=posix + [ "$CC" ] || CC=gcc + + make \ + CC="$CC" \ + $MAKEFLAGS \ + OPT="$CFLAGS" \ + XLDFLAGS="$LDFLAGS" \ + CRYPTO=OPENSSL \ + SYS=posix make \ CRYPTO=OPENSSL \ -- cgit v1.2.3