Browse Source

xorg-server: improved cross compilation by passing -rpath pointing to libx11's libdir

user/amery/mess
Alejandro Mery 14 years ago
committed by Alejandro Mery
parent
commit
f4ff538f88
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      xorg/xorg-server/parse-config

+ 5
- 1
xorg/xorg-server/parse-config

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../xorg-server/parse-config # 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 # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # 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/lib?-L/usr/X11/lib'
var_append GCC_WRAPPER_INSERT ' ' '*/X11R6/lib64?-L/usr/X11/lib64' var_append GCC_WRAPPER_INSERT ' ' '*/X11R6/lib64?-L/usr/X11/lib64'
fi fi
if atstage cross && pkginstalled libx11; then
var_append GCC_WRAPPER_INSERT ' ' "-Wl,-rpath,$(pkgprefix -r libdir libx11)"
fi

Loading…
Cancel
Save