OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36adb2e
)
Use -fPIC on Sparc, per Tom Callaway.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 19 May 2003 17:51:01 +0000
(17:51 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 19 May 2003 17:51:01 +0000
(17:51 +0000)
src/makefiles/Makefile.linux
patch
|
blob
|
history
diff --git
a/src/makefiles/Makefile.linux
b/src/makefiles/Makefile.linux
index
2b204f9
..
c403552
100644
(file)
--- a/
src/makefiles/Makefile.linux
+++ b/
src/makefiles/Makefile.linux
@@
-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 $@ $<