[packages/hdf] - added opt patch (don't override optimization)

qboosh qboosh at pld-linux.org
Thu Nov 12 22:01:55 CET 2020


commit 1caca7ca0b15d4a49c805780b949848e96b19603
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 12 22:02:03 2020 +0100

    - added opt patch (don't override optimization)

 hdf-opt.patch | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hdf.spec      |  2 ++
 2 files changed, 69 insertions(+)
---
diff --git a/hdf.spec b/hdf.spec
index 75ca40e..f6b8744 100644
--- a/hdf.spec
+++ b/hdf.spec
@@ -20,6 +20,7 @@ Patch1:		%{name}-morearchs.patch
 Patch2:		%{name}-link.patch
 Patch3:		%{name}-szip.patch
 Patch4:		%{name}-tirpc.patch
+Patch5:		%{name}-opt.patch
 URL:		http://portal.hdfgroup.org/display/HDF4/HDF4
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -144,6 +145,7 @@ Dokumentacja javadoc do interfejsu HDF do Javy (JHI).
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{__libtoolize}
diff --git a/hdf-opt.patch b/hdf-opt.patch
new file mode 100644
index 0000000..8c081e9
--- /dev/null
+++ b/hdf-opt.patch
@@ -0,0 +1,67 @@
+--- hdf-4.2.15/config/linux-gnu.orig	2020-03-03 18:40:50.000000000 +0100
++++ hdf-4.2.15/config/linux-gnu	2020-11-12 21:56:55.160467962 +0100
+@@ -182,11 +182,11 @@
+ # value of CC may have changed above).
+ 
+ case $CC_BASENAME in
+-  gcc)
++  *gcc)
+     CFLAGS="$CFLAGS"
+     DEBUG_CFLAGS="-g -fverbose-asm"
+     DEBUG_CPPFLAGS=
+-    PROD_CFLAGS="-O3 -fomit-frame-pointer"
++    PROD_CFLAGS="-fomit-frame-pointer"
+     PROD_CPPFLAGS=
+     PROFILE_CFLAGS="-pg"
+     PROFILE_CPPFLAGS=
+@@ -196,7 +196,7 @@
+     CFLAGS="$CFLAGS"
+     DEBUG_CFLAGS="-g"
+     DEBUG_CPPFLAGS=
+-    PROD_CFLAGS="-O"
++    PROD_CFLAGS=
+     PROD_CPPFLAGS=
+     PROFILE_CFLAGS="-pg"
+     PROFILE_CPPFLAGS=
+@@ -204,33 +204,33 @@
+ esac
+ 
+ case $F77_BASENAME in 
+-  gfortran)
++  *gfortran)
+     FFLAGS="$FFLAGS"
+     DEBUG_FFLAGS="-g"
+-    PROD_FFLAGS="-O"
++    PROD_FFLAGS=
+     PROFILE_FFLAGS="-pg"
+     ;;
+ 
+-  g77)
++  *g77)
+     FFLAGS="$FFLAGS "
+     DEBUG_FFLAGS="-g"
+-    PROD_FFLAGS="-O3 -fomit-frame-pointer"
++    PROD_FFLAGS="-fomit-frame-pointer"
+     PROFILE_FFLAGS="-pg"
+     ;;
+ 
+-  f95)
++  *f95)
+     CFLAGS="$CFLAGS"
+     FFLAGS="$FFLAGS"
+     DEBUG_FFLAGS="-g"
+-    PROD_FFLAGS="-O"
++    PROD_FFLAGS=
+     PROFILE_FFLAGS="-pg"
+     ;;
+ 
+-  g95)
++  *g95)
+     CFLAGS="$CFLAGS"
+     FFLAGS="$FFLAGS -i4"
+     DEBUG_FFLAGS="-g"
+-    PROD_FFLAGS="-O"
++    PROD_FFLAGS=
+     PROFILE_FFLAGS="-pg"
+     ;;
+ esac
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hdf.git/commitdiff/1caca7ca0b15d4a49c805780b949848e96b19603



More information about the pld-cvs-commit mailing list