diff --git a/exim-4.84-dlopen-localscan.patch b/exim-4.84-dlopen-localscan.patch index 67cccb3..09854e0 100644 --- a/exim-4.84-dlopen-localscan.patch +++ b/exim-4.84-dlopen-localscan.patch @@ -17,7 +17,7 @@ index a3ffd48..c186529 100644 +# linker flags. Without it, the loaded .so won't be able to access any +# functions from exim. + -+LFLAGS=-rdynamic -ldl ++LFLAGS=-rdynamic -ldl -pie + +#------------------------------------------------------------------------------ # The default distribution of Exim contains only the plain text form of the diff --git a/exim.spec b/exim.spec index d59ac6d..1c2c1fa 100644 --- a/exim.spec +++ b/exim.spec @@ -234,7 +234,7 @@ cp exim_monitor/EDITME Local/eximon.conf %else export PIE=-fPIE %endif -make LFLAGS=-pie _lib=%{_lib} FULLECHO= +make _lib=%{_lib} FULLECHO= %if %{with sa} # build sa-exim