diff -up dialog-1.3-20210306/dialog-config.in.multilib dialog-1.3-20210306/dialog-config.in --- dialog-1.3-20210306/dialog-config.in.multilib 2021-03-06 00:48:36.000000000 +0100 +++ dialog-1.3-20210306/dialog-config.in 2021-03-08 13:21:27.329819594 +0100 @@ -53,14 +53,14 @@ while test $# -gt 0; do eval bindir='"@bindir@"' eval includedir='"@includedir@"' - eval libdir='"@libdir@"' + eval libdir='' eval datadir='"@datadir@"' eval mandir='"@mandir@"' [ -z "$includedir" ] && includedir="${prefix}/include" - eval LDFLAGS='"@LDFLAGS@"' - eval LIBS='"@LIBS@"' + eval LDFLAGS='' + eval LIBS='' LIBS="-l${THIS} $LIBS" # If the directory given by --libdir is not in the LDFLAGS+LIBS set, @@ -74,12 +74,12 @@ while test $# -gt 0; do break fi done - if [ $found = no ] + if false then [ -n "$LFLAGS" ] && LDFLAGS=" $LFDLAGS" LDFLAGS="-L${libdir}$LDFLAGS" fi - [ -z "$LDFLAGS" ] && LDFLAGS="-L${exec_prefix}/lib" + #[ -z "$LDFLAGS" ] && LDFLAGS="-L${exec_prefix}/lib" # Ignore -L options which do not correspond to an actual directory, # or which are standard library directories (i.e., the linker is @@ -95,9 +95,6 @@ while test $# -gt 0; do opt_lib=`echo "x$opt" | sed -e 's/^x-L//'` [ -d "$opt_lib" ] || continue case "$opt_lib" in - @LD_SEARCHPATH@) # skip standard libdir - continue - ;; *) ;; esac