blob: dd3aa5a6ccc7ba842c502136f8696a6905cb01be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
* when using -fpic, the .got section must fit into 4K, which on Solaris
it doesn't ("relocation truncated to fit: R_SPARC_GOT13")
* http://lists.gnu.org/archive/html/bug-readline/2008-04/msg00000.html
--- support/shobj-conf
+++ support/shobj-conf
@@ -80,15 +80,17 @@
;;
sunos5*-*gcc*|solaris2*-*gcc*)
- SHOBJ_CFLAGS=-fpic
SHOBJ_LD='${CC}'
ld_used=`gcc -print-prog-name=ld`
if ${ld_used} -V 2>&1 | grep GNU >/dev/null 2>&1; then
# This line works for the GNU ld
SHOBJ_LDFLAGS='-shared -Wl,-h,$@'
+ # http://sourceware.org/ml/binutils/2001-08/msg00361.html
+ SHOBJ_CFLAGS=-fPIC
else
# This line works for the Solaris linker in /usr/ccs/bin/ld
SHOBJ_LDFLAGS='-shared -Wl,-i -Wl,-h,$@'
+ SHOBJ_CFLAGS=-fpic
fi
# SHLIB_XLDFLAGS='-R $(libdir)'
|