Jeff Blaine wrote:
99% sure this is a bug. Posting here to make sure: My '-R' options in LDFLAGS are being ignored at certain link times.
It's a "feature" of libtool. This may be fixed in current versions of libtool, so you could try libtoolize'ing cyrus-sasl with a newer version, but here's the patch I use to fix it:
carson:gandalf 0 $ diff -u cyrus-sasl-2.1.22/config/ltmain.sh.DIST cyrus-sasl-2.1.22/config/ltmain.sh
--- cyrus-sasl-2.1.22/config/ltmain.sh.DIST Mon Sep 4 12:56:47 2006 +++ cyrus-sasl-2.1.22/config/ltmain.sh Mon Sep 4 13:06:09 2006 @@ -984,6 +984,10 @@ *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac + case " $deplibs " in + *" -R$arg "*) ;; + *) deplibs="$deplibs -R$arg";; + esac fi prev= continue @@ -1151,6 +1155,10 @@ *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac + case " $deplibs " in + *" -R$dir "*) ;; + *) deplibs="$deplibs -R$dir";; + esac continue ;;