Skip to content
Snippets Groups Projects
Commit 9ecba0c2 authored by Tom Lane's avatar Tom Lane
Browse files

Use -fPIC on Sparc, per Tom Callaway.

parent 36adb2e0
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,12 @@ rpath = -Wl,-rpath,$(libdir)
shlib_symbolic = -Wl,-Bsymbolic
allow_nonpic_in_shlib = yes
DLSUFFIX = .so
ifeq "$(findstring sparc,$(host_cpu))" "sparc"
CFLAGS_SL = -fPIC
else
CFLAGS_SL = -fpic
endif
%.so: %.o
$(CC) -shared -o $@ $<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment