diff options
Diffstat (limited to 'sys-libs/readline/files/5.0-solaris.patch')
-rw-r--r-- | sys-libs/readline/files/5.0-solaris.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-libs/readline/files/5.0-solaris.patch b/sys-libs/readline/files/5.0-solaris.patch new file mode 100644 index 000000000000..927bac5c202b --- /dev/null +++ b/sys-libs/readline/files/5.0-solaris.patch @@ -0,0 +1,25 @@ +fixup solaris linker options + +http://bugs.gentoo.org/show_bug.cgi?id=81058 + +--- support/shobj-conf.orig ++++ support/shobj-conf +@@ -78,10 +78,14 @@ + sunos5*-*gcc*|solaris2*-*gcc*) + SHOBJ_CFLAGS=-fpic + SHOBJ_LD='${CC}' +- # This line works for the Solaris linker in /usr/ccs/bin/ld +- SHOBJ_LDFLAGS='-shared -Wl,-i -Wl,-h,$@' +- # This line works for the GNU ld +-# SHOBJ_LDFLAGS='-shared -Wl,-h,$@' ++ ld_used=`gcc -print-prog-name=ld` ++ if ${ld_used} -V 2>&1 | grep -q GNU; then ++ # This line works for the GNU ld ++ SHOBJ_LDFLAGS='-shared -Wl,-h,$@' ++ else ++ # This line works for the Solaris linker in /usr/ccs/bin/ld ++ SHOBJ_LDFLAGS='-shared -Wl,-i -Wl,-h,$@' ++ fi + + # SHLIB_XLDFLAGS='-R $(libdir)' + SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' |