6ea53b2
#! /bin/sh /usr/share/dpatch/dpatch-run
6ea53b2
## 801-non-optimized-rule-uses-fPIC-g.dpatch by  <kmccarty@debian.org>
6ea53b2
##
6ea53b2
## All lines beginning with `## DP:' are a description of the patch.
6ea53b2
## DP: Ensure that special rules for creating non-optimized object files
6ea53b2
## DP: use -fPIC for files that go into shared libs, and -g for all files.
6ea53b2
6ea53b2
@DPATCH@
6ea53b2
diff -urNad cernlib-2005.05.09/src/config/fortran.rules /tmp/dpep.gResDB/cernlib-2005.05.09/src/config/fortran.rules
6ea53b2
--- cernlib-2005.05.09/src/config/fortran.rules	1997-05-30 12:25:18.000000000 -0400
6ea53b2
+++ /tmp/dpep.gResDB/cernlib-2005.05.09/src/config/fortran.rules	2005-06-09 10:37:19.092244331 -0400
6ea53b2
@@ -345,9 +345,9 @@
6ea53b2
 
6ea53b2
 #ifndef SpecialFortranLibObjectRule
6ea53b2
 #define SpecialFortranLibObjectRule(baseobj,basedep,options,cppoptions)	@@\
6ea53b2
-SpecialFortranArchiveObjectRule(baseobj,basedep,options,cppoptions)	@@\
6ea53b2
-SpecialFortranSharedObjectRule(baseobj,basedep,options,cppoptions)	@@\
6ea53b2
-SpecialFortranDebugObjectRule(baseobj,basedep,options,cppoptions)
6ea53b2
+SpecialFortranArchiveObjectRule(baseobj,basedep,options -g,cppoptions)	    @@\
6ea53b2
+SpecialFortranSharedObjectRule(baseobj,basedep,options -g -fPIC,cppoptions) @@\
6ea53b2
+SpecialFortranDebugObjectRule(baseobj,basedep,options -g,cppoptions)
6ea53b2
 #endif
6ea53b2
 
6ea53b2
 #ifndef SpecialFortranArchiveObjectRule