ports/devel/ncurses/files/patch-configure
Kubilay Kocak 18086dd2df devel/ncurses: Fix pkg-config file for linking
- Backport upstream patch from 20160220 [1]:

  modify configure macro for shared-library rules to use -Wl,-rpath
  rather than -rpath to work around a bug in scons (FreeBSD #178732 [2],
  cf: 20061021).

While I'm here:

- Remove unecessary CONFLICTS (on deleted port)
- Add LICENSE_FILE
- Tab -> space in pkg-descr: WWW URL

[1] http://lists.gnu.org/archive/html/bug-ncurses/2016-02/msg00009.html
[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178732

PR:		209526
Submitted by:	John Hein <z7dr6ut7gs snkmail com>
MFH:		2016Q4
2016-10-22 07:05:55 +00:00

24 lines
661 B
Text

# Based on upstream 6.0 patch 20160220:
#
# + modify configure macro for shared-library rules to use -Wl,-rpath
# rather than -rpath to work around a bug in scons (FreeBSD #178732,
# cf: 20061021).
#
# See Also:
#
# http://lists.gnu.org/archive/html/bug-ncurses/2016-02/msg00009.html
# http://lists.gnu.org/archive/html/bug-ncurses/2016-02/msg00006.html
#
# TODO: Remove patch on 6.1 update
--- configure.orig 2015-08-05 09:20:32 UTC
+++ configure
@@ -5863,7 +5863,7 @@ case $cf_cv_system_name in
LD_RPATH_OPT="-Wl,-rpath,"
;;
(dragonfly*|freebsd*)
- LD_RPATH_OPT="-rpath "
+ LD_RPATH_OPT="-Wl,-rpath,"
;;
(netbsd*)
LD_RPATH_OPT="-Wl,-rpath,"