From f4ff538f8847c936f1372bab1cdb2aa9bebd529b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 4 May 2010 07:56:57 -0400 Subject: [PATCH] xorg-server: improved cross compilation by passing -rpath pointing to libx11's libdir --- xorg/xorg-server/parse-config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xorg/xorg-server/parse-config b/xorg/xorg-server/parse-config index 5eaf896b6..f90ba1096 100644 --- a/xorg/xorg-server/parse-config +++ b/xorg/xorg-server/parse-config @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../xorg-server/parse-config -# Copyright (C) 2009 The OpenSDE Project +# Copyright (C) 2009 - 2010 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -19,3 +19,7 @@ if hasflag X11R6; then var_append GCC_WRAPPER_INSERT ' ' '*/X11R6/lib?-L/usr/X11/lib' var_append GCC_WRAPPER_INSERT ' ' '*/X11R6/lib64?-L/usr/X11/lib64' fi + +if atstage cross && pkginstalled libx11; then + var_append GCC_WRAPPER_INSERT ' ' "-Wl,-rpath,$(pkgprefix -r libdir libx11)" +fi