[g2clib] Add -fPIC to 64-bit builds

Orion Poplawski orion at fedoraproject.org
Mon Oct 10 14:22:02 UTC 2011


commit ba6a103e6073bd7c696a46e9b2942fd39d099ae6
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Mon Oct 10 08:22:01 2011 -0600

    Add -fPIC to 64-bit builds

 g2clib.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/g2clib.spec b/g2clib.spec
index 7cc1e83..a3bde13 100644
--- a/g2clib.spec
+++ b/g2clib.spec
@@ -1,6 +1,6 @@
 Name:           g2clib
 Version:        1.2.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        GRIB2 encoder/decoder and search/indexing routines in C
 
 Group:          System Environment/Libraries
@@ -47,7 +47,7 @@ cp -p %{SOURCE1} .
 %build
 CFLAGS="$RPM_OPT_FLAGS -DUSE_PNG -DUSE_JPEG2000"
 %ifarch x86_64 ia64 s390x ppc64
-CFLAGS="$CFLAGS -D__64BIT__"
+CFLAGS="$CFLAGS -D__64BIT__ -fPIC"
 %endif
 make CFLAGS="$CFLAGS" CC="%{__cc}" ARFLAGS=
 
@@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Oct 10 2011 Orion Poplawski <orion at cora.nwra.com> - 1.2.2-2
+- Add -fPIC to 64-bit builds
+
 * Wed Mar 16 2011 Orion Poplawski <orion at cora.nwra.com> - 1.2.2-1
 - Update to 1.2.2
 


More information about the scm-commits mailing list