diff --git a/srcpkgs/cyrus-sasl/template b/srcpkgs/cyrus-sasl/template index 8055716a2d8..88ca83f696a 100644 --- a/srcpkgs/cyrus-sasl/template +++ b/srcpkgs/cyrus-sasl/template @@ -41,7 +41,6 @@ pre_configure() { popd } do_configure() { - export CFLAGS+=" -fPIC" LIBS=-lsasl2 ./configure ${configure_args} \ --sbindir=/usr/bin --disable-static --enable-shared \ --enable-alwaystrue --enable-checkapop --enable-cram \ diff --git a/srcpkgs/libsasl/patches/cross-makemd5.patch b/srcpkgs/libsasl/patches/cross-makemd5.patch index fd4e522ff2b..8eeb0d2a31b 100644 --- a/srcpkgs/libsasl/patches/cross-makemd5.patch +++ b/srcpkgs/libsasl/patches/cross-makemd5.patch @@ -1,12 +1,13 @@ --- a/include/Makefile.am.orig 2014-07-25 16:11:53.760645554 +0200 +++ b/include/Makefile.am 2014-07-25 16:12:05.961050991 +0200 -@@ -49,6 +49,9 @@ saslinclude_HEADERS = hmac-md5.h md5.h m +@@ -49,6 +49,10 @@ saslinclude_HEADERS = hmac-md5.h md5.h m noinst_PROGRAMS = makemd5 +CC = cc +CFLAGS = -O2 +LIBS = ++LDFLAGS = makemd5_SOURCES = makemd5.c md5global.h: makemd5