pkgsrc/editors/emacs26/patches/patch-configure
leot 0199e4a9c8 emacs26: Do not (manually) inject X11 LDFLAGS via configure
On NetBSD and OpenBSD the configure script injects LD_SWITCH_X_SITE_RPATH
(e.g.  `-Wl,-rpath,/usr/X11R7/lib') early as LDFLAGS leading to link with
possible X11 native libraries when it is not requested.

Should fix PR pkg/53688.

Bump PKGREVISION

Thanks to <maya> for debug-fu help!
2018-10-27 20:58:39 +00:00

17 lines
513 B
Text

$NetBSD: patch-configure,v 1.1 2018/10/27 20:58:39 leot Exp $
Do not inject X11 LDFLAGS, pkgsrc handles that.
Fixes PR pkg/53688.
--- configure.orig 2017-09-11 17:28:38.000000000 +0000
+++ configure
@@ -9549,7 +9549,8 @@ ac_link="$ac_link $LD_SWITCH_SYSTEM"
## LD_SWITCH_SYSTEM_TEMACS.
case "$opsys" in
netbsd|openbsd)
- LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
+### This is handled by pkgsrc.
+### LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
esac