diff -Nur -x '*.orig' -x '*~' postgresql-pljava-1.4.0/src/C/pljava/Makefile postgresql-pljava-1.4.0.new/src/C/pljava/Makefile
--- postgresql-pljava-1.4.0/src/C/pljava/Makefile	2008-04-04 21:56:48.000000000 +0200
+++ postgresql-pljava-1.4.0.new/src/C/pljava/Makefile	2008-04-04 21:56:48.000000000 +0200
@@ -26,6 +26,8 @@
 #
 include $(PGXS)
 
+CFLAGS_SL := $(subst -fpic, -fPIC, $(CFLAGS_SL))
+
 SS_VERSION := $(subst ., ,$(subst devel,.99,$(subst beta,.99,$(subst RC,.99,$(VERSION)))))
 PGSQL_MAJOR_VER	= $(word 1,$(SS_VERSION))
 PGSQL_MINOR_VER	= $(word 2,$(SS_VERSION))
diff -Nur -x '*.orig' -x '*~' postgresql-pljava-1.4.0/src/java/pljava/Makefile postgresql-pljava-1.4.0.new/src/java/pljava/Makefile
--- postgresql-pljava-1.4.0/src/java/pljava/Makefile	2008-02-01 08:37:59.000000000 +0100
+++ postgresql-pljava-1.4.0.new/src/java/pljava/Makefile	2008-04-04 21:56:48.000000000 +0200
@@ -57,8 +57,8 @@
 
 $(OBJDIR)/$(NAME)_jar.o: .timestamp
 	@-mkdir -p $(@D)
-	@echo $(GCJ) -c -fpic -fjni -o $@ '<java sources>'
-	@$(GCJ) -c -fpic -fjni -o $@ $(SRCS)
+	@echo $(GCJ) -c -fPIC -fjni -o $@ '<java sources>'
+	@$(GCJ) -c -fPIC -fjni -o $@ $(SRCS)
 
 # gcjh fails to clear its function name cache between files (see
 # gcc bugzilla #17575) so we must do each file separately to
