diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-11 23:27:23 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-11 23:27:23 +0000 |
| commit | d10a406fe8567fffb6c6aad76e11d5acc93c1ec1 (patch) | |
| tree | f20d99171c2980a000e32754afe78d3b17560116 /src/makefiles/Makefile.freebsd | |
| parent | 26112850ec5733a96a31022859763de4b3724336 (diff) | |
| download | postgresql-d10a406fe8567fffb6c6aad76e11d5acc93c1ec1.tar.gz | |
Use -fPIC not -fpic for BSDen on Sparc. Also switch from
$(LD) -x -Bshareable to $(CC) -shared on OpenBSD (I suspect this
should be carried over to the other two as well, but will refrain
pending suggestions from people who actually use those platforms).
Per Stefan Kaltenbrunner.
Diffstat (limited to 'src/makefiles/Makefile.freebsd')
| -rw-r--r-- | src/makefiles/Makefile.freebsd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd index 90543b7016..a9e59604d5 100644 --- a/src/makefiles/Makefile.freebsd +++ b/src/makefiles/Makefile.freebsd @@ -7,7 +7,13 @@ shlib_symbolic = -Wl,-Bsymbolic -lc endif DLSUFFIX = .so + +ifeq ($(findstring sparc,$(host_cpu)), sparc) +CFLAGS_SL = -fPIC -DPIC +else CFLAGS_SL = -fpic -DPIC +endif + %.so: %.o ifdef ELF_SYSTEM |
