OSDN Git Service

Use -fPIC on Sparc, per Tom Callaway.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 May 2003 17:51:01 +0000 (17:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 May 2003 17:51:01 +0000 (17:51 +0000)
src/makefiles/Makefile.linux

index 2b204f9..c403552 100644 (file)
@@ -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 $@ $<