diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-10-28 11:46:32 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-10-28 11:46:32 +0000 |
commit | b526168b93689d0891d69b26e3c31a70fe58bb13 (patch) | |
tree | e194cf4f73765b1260bd7d1a022817d8a4a6dc4a /eclass/xorg-2.eclass | |
parent | Drop code that moved to eclass. (diff) | |
download | gentoo-2-b526168b93689d0891d69b26e3c31a70fe58bb13.tar.gz gentoo-2-b526168b93689d0891d69b26e3c31a70fe58bb13.tar.bz2 gentoo-2-b526168b93689d0891d69b26e3c31a70fe58bb13.zip |
Conditional previous commit in favor of stripping it only on libs.
Diffstat (limited to 'eclass/xorg-2.eclass')
-rw-r--r-- | eclass/xorg-2.eclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass index 237dcfb484c0..5ab968e426d6 100644 --- a/eclass/xorg-2.eclass +++ b/eclass/xorg-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.15 2010/10/28 11:43:33 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.16 2010/10/28 11:46:32 scarabeus Exp $ # # @ECLASS: xorg-2.eclass # @MAINTAINER: @@ -258,10 +258,12 @@ xorg-2_flags_setup() { # hardened ldflags [[ ${PN} = xorg-server || -n ${DRIVER} ]] && append-ldflags -Wl,-z,lazy - # Quite few packages fail on runtime without these: - filter-flags -Wl,-Bdirect - filter-ldflags -Bdirect - filter-ldflags -Wl,-Bdirect + # Quite few libraries fail on runtime without these: + if has static-libs ${IUSE//+}; then + filter-flags -Wl,-Bdirect + filter-ldflags -Bdirect + filter-ldflags -Wl,-Bdirect + fi } # @FUNCTION: xorg-2_src_configure |