pkgsrc/devel/gps/patches/patch-gnatlib_src_gnatcoll__readline.gpr.in
marino 9dc37477b3 devel/gps: Fix build on SunOS by using COMPILER_RPATH_FLAG
The SunOS linker doesn't understand -rpath, so replace it with
COMPILER_RPATH_FLAG to fix build on SunOS.

Also removing empty directories in the post-install target is not
necessary on pkgsrc.  The SunOS find program doesn't recognize -empty
switch, remove the redundant command to avoid error messages.
2014-05-09 18:37:34 +00:00

25 lines
1 KiB
Text

$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;