diff options
| author | Tom Lane | 2003-05-19 17:51:01 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-05-19 17:51:01 +0000 |
| commit | 9ecba0c2f88cdd119c5da9fa279bcab79a03b43b (patch) | |
| tree | 90d59de632622e87ba48df116e143433c1f127e0 | |
| parent | 36adb2e0955523c402037e601d848e4206f2ee34 (diff) | |
Use -fPIC on Sparc, per Tom Callaway.
| -rw-r--r-- | src/makefiles/Makefile.linux | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.linux b/src/makefiles/Makefile.linux index 2b204f9d853..c40355240b2 100644 --- 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 $@ $< |
