summaryrefslogtreecommitdiff
path: root/profiles/prefix/sunos/solaris/profile.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/prefix/sunos/solaris/profile.bashrc')
-rw-r--r--profiles/prefix/sunos/solaris/profile.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/profiles/prefix/sunos/solaris/profile.bashrc b/profiles/prefix/sunos/solaris/profile.bashrc
new file mode 100644
index 000000000000..b6e65dcde052
--- /dev/null
+++ b/profiles/prefix/sunos/solaris/profile.bashrc
@@ -0,0 +1,11 @@
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+
+# Automatically determine whether or not gen_usr_ldscript should be
+# doing something or not. This is necessary due to previous screwups,
+# which may have lead to people bootstrapping already without
+# gen_usr_ldscript being active, while existing installs should remain
+# untouched for now.
+if [[ -z ${PREFIX_DISABLE_GEN_USR_LDSCRIPT} ]] ; then
+ [[ ! -e ${EPREFIX}/lib/libz.so.1 ]] \
+ && PREFIX_DISABLE_GEN_USR_LDSCRIPT=yes
+fi