Set RPATH to X11BASE/lib for OpenBSD too.

This commit is contained in:
obache 2012-05-04 11:38:20 +00:00
parent 4ecf8fdfc6
commit 093efced1e
2 changed files with 19 additions and 1 deletions

View file

@ -1,8 +1,9 @@
$NetBSD: distinfo,v 1.14 2012/04/12 14:01:17 hans Exp $
$NetBSD: distinfo,v 1.15 2012/05/04 11:38:20 obache Exp $
SHA1 (xorg-cf-files-1.0.4.tar.bz2) = c58b7252df481572ec1ccd77b9f1ab561ed89e45
RMD160 (xorg-cf-files-1.0.4.tar.bz2) = 975942e8974812aae91c45d81eb27522e5aa0a5d
Size (xorg-cf-files-1.0.4.tar.bz2) = 367380 bytes
SHA1 (patch-OpenBSDLib.rules) = 65b02b660839adb6e9c13287396a794a4586d927
SHA1 (patch-X11.rules) = 13fee315aced521bef608e9341fc72526341bb1f
SHA1 (patch-X11.tmpl) = 3f0c5b8ad7a60cd0e1e47afcddaace936b9aaeed
SHA1 (patch-aa) = 6b776ab3c9cc04759eb2fefcd95dcd65ea5909b3

View file

@ -0,0 +1,17 @@
$NetBSD: patch-OpenBSDLib.rules,v 1.1 2012/05/04 11:38:20 obache Exp $
--- OpenBSDLib.rules.orig 2009-10-16 21:45:42.000000000 +0000
+++ OpenBSDLib.rules
@@ -42,7 +42,11 @@ XCOMM $XFree86: xc/config/cf/OpenBSDLib.
#endif
#ifndef RpathLoadFlags
#if UseRpath
-#define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
+# ifdef RealProjectRoot
+# define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH) -Wl,-rpath,$(REALPROJECTROOT)/lib -L $(REALPROJECTROOT)/lib
+# else
+# define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
+# endif
#else
#define RpathLoadFlags /**/
#endif