Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9ecba0c

Browse files
committed
Use -fPIC on Sparc, per Tom Callaway.
1 parent 36adb2e commit 9ecba0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/makefiles/Makefile.linux

+5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ rpath = -Wl,-rpath,$(libdir)
44
shlib_symbolic = -Wl,-Bsymbolic
55
allow_nonpic_in_shlib = yes
66
DLSUFFIX = .so
7+
8+
ifeq "$(findstring sparc,$(host_cpu))" "sparc"
9+
CFLAGS_SL = -fPIC
10+
else
711
CFLAGS_SL = -fpic
12+
endif
813

914
%.so: %.o
1015
$(CC) -shared -o $@ $<

0 commit comments

Comments
 (0)