File: pic.patch

package info (click to toggle)
postgresql-pljava 1.4.0-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,752 kB
  • ctags: 3,524
  • sloc: java: 14,855; ansic: 10,322; makefile: 361; sql: 72; xml: 57
file content (26 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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