packages: gdal/gdal-fpic.patch (NEW)=?UTF-8?Q?=20?=- try to fix ruby build

adamg adamg at pld-linux.org
Mon Feb 13 16:35:37 CET 2012


Author: adamg                        Date: Mon Feb 13 15:35:37 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- try to fix ruby build

---- Files affected:
packages/gdal:
   gdal-fpic.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gdal/gdal-fpic.patch
diff -u /dev/null packages/gdal/gdal-fpic.patch:1.1
--- /dev/null	Mon Feb 13 16:35:37 2012
+++ packages/gdal/gdal-fpic.patch	Mon Feb 13 16:35:31 2012
@@ -0,0 +1,12 @@
+--- gdal-1.9.0/swig/ruby/RubyMakefile.mk~	2012-01-04 08:03:41.000000000 +0100
++++ gdal-1.9.0/swig/ruby/RubyMakefile.mk	2012-02-13 16:12:17.778605160 +0100
+@@ -41,7 +41,8 @@
+ RUBY_LIB := -l$(RUBY_SO_NAME)
+ else
+ RUBY_MODULES=$(RUBY_MODULES_LIN)
+-LDFLAGS += -Xcompiler -shared -L$(RUBY_LIB_DIR)
++LDFLAGS += -fPIC -Xcompiler -shared -L$(RUBY_LIB_DIR)
++CFLAGS += -fPIC
+ RUBY_LIB := -l$(RUBY_SO_NAME)
+ endif
+ 
================================================================


More information about the pld-cvs-commit mailing list