--- files/exim-4.43-r2-localscan_dlopen.patch 2005-01-08 21:09:19.000000000 +0200 +++ files/exim-4.43-r2-localscan_dlopen.patch 2011-02-08 22:03:09.000000000 +0200 @@ -1,7 +1,7 @@ diff -Naur exim-4.32/src/EDITME exim-4.32-dlopen/src/EDITME --- src/EDITME 2004-04-15 08:27:01.000000000 +0000 -+++ src/EDITME 2004-05-06 16:15:47.000000000 +0000 -@@ -505,6 +505,21 @@ @@ -16,8 +16,10 @@ +# linker flags. Without it, the loaded .so won't be able to access any +# functions from exim. + -+LFLAGS=-rdynamic -ldl -+ ++LFLAGS=-rdynamic ++.if ${OSTYPE} == "Linux" ++LFLAGS="${LFLAGS} -ldl" ++.endif + +#------------------------------------------------------------------------------ # The default distribution of Exim contains only the plain text form of the