$NetBSD: patch-gnatlib_src_gnatcoll__readline.gpr.in,v 1.3 2014/05/09 18:37:34 marino Exp $

Fix Readline support

--- gnatlib/src/gnatcoll_readline.gpr.in.orig	2012-07-13 14:11:00.000000000 +0000
+++ gnatlib/src/gnatcoll_readline.gpr.in
@@ -6,7 +6,7 @@ project GnatColl_Readline is
       when "yes" =>
          for Languages use ("Ada");
          for Source_Dirs use ("readline", "readline/with_readline");
-         for Library_Options use ("-lreadline");
+         for Library_Options use ("-L@PREFIX@/lib", "-lreadline");
       when "no" =>
          for Source_Dirs use ("readline", "readline/no_readline");
    end case;
@@ -26,7 +26,8 @@ project GnatColl_Readline is
    package Linker is
       --  When linking an executable
       case Gnatcoll_Shared.Readline is
-         when "yes" => for Linker_Options use ("-lreadline");
+         when "yes" => for Linker_Options use ("-rpath", "@PREFIX@/lib",
+            "-L@PREFIX@/lib", "-lreadline");
          when "no"  => null;
       end case;
    end Linker;
