[gdal] build with PIC

Peter Robinson pbrobinson at fedoraproject.org
Fri Jul 20 14:23:13 UTC 2012


commit 27eac7c8ce206b332e61aff81dbb0df3a39a6d8d
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Fri Jul 20 15:22:51 2012 +0100

    build with PIC

 gdal.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdal.spec b/gdal.spec
index 9a2fee3..759b91a 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -30,7 +30,7 @@
 
 Name:      gdal
 Version:   1.9.1
-Release:   6%{?dist}
+Release:   7%{?dist}
 Summary:   GIS file format library
 Group:     System Environment/Libraries
 License:   MIT
@@ -377,7 +377,7 @@ sed -i 's|#CHARLS_LIB = -L/path/to/charls_lib -lCharLS|CHARLS_LIB = -lCharLS|' G
 
 %build
 #TODO: Couldn't I have modified that in the prep section?
-export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff -fPIC"
 
 # For future reference:
 # epsilon: Stalled review -- https://bugzilla.redhat.com/show_bug.cgi?id=660024
@@ -788,6 +788,9 @@ rm -rf %{buildroot}
 #Or as before, using ldconfig
 
 %changelog
+* Fri Jul 20 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 1.9.1-7
+- Build with PIC
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.9.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list