File: compiler-specific-changes

package info (click to toggle)
pgplot5 5.2.2-19.7
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 7,188 kB
  • sloc: fortran: 39,795; ansic: 22,554; objc: 1,534; sh: 1,298; makefile: 267; pascal: 233; perl: 209; tcl: 190; awk: 51; csh: 25
file content (70 lines) | stat: -rw-r--r-- 2,119 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Description: correct compiler and flags
 This patch set selects the proper fortran compiler and flags.

---

Last-Update: 2011-11-18

--- a/sys_linux/g77_gcc.conf
+++ b/sys_linux/g77_gcc.conf
@@ -1,4 +1,4 @@
-# The GNU g77 FORTRAN compiler and Gnu gcc C compiler on an elf-system.
+# The GNU gfortran FORTRAN compiler and Gnu gcc C compiler on an elf-system.
 #-----------------------------------------------------------------------
 
 # Optional: Needed by XWDRIV (/xwindow and /xserve) and
@@ -34,13 +34,13 @@
 # Mandatory.
 # The FORTRAN compiler to use.
  
-   FCOMPL="g77"
+   FCOMPL="gfortran"
 
 # Mandatory.
 # The FORTRAN compiler flags to use when compiling the pgplot library.
 # (NB. makemake prepends -c to $FFLAGC where needed)
  
-   FFLAGC="-u -Wall -fPIC -O"
+   FFLAGC="-u -Wall -fPIC -O3"
 
 # Mandatory.
 # The FORTRAN compiler flags to use when compiling fortran demo programs.
@@ -57,12 +57,12 @@
 # Mandatory.
 # The C compiler flags to use when compiling the pgplot library.
  
-   CFLAGC="-Wall -fPIC -DPG_PPU -O"
+   CFLAGC="-Wall -fPIC -DPG_PPU -O3"
 
 # Mandatory.
 # The C compiler flags to use when compiling C demo programs.
  
-   CFLAGD="-Wall -O"
+   CFLAGD="-Wall -O3"
 
 # Optional: Only needed if the cpgplot library is to be compiled.
 # The flags to use when running pgbind to create the C pgplot wrapper
@@ -108,7 +108,11 @@
 # Optional: Needed if SHARED_LIB is set.
 # How to create a shared library from a trailing list of object files.
  
-   SHARED_LD="gcc -shared  -o $SHARED_LIB"
+   SHARED_LD_PGPLOT_OPTS="-o $SHARED_LIB -Wl,-soname,libpgplot.so.\$(VM)"
+
+   SHARED_LD_CPGPLOT_OPTS="-o libcpgplot.so -Wl,-soname,libcpgplot.so.\$(VM)"
+
+   SHARED_LD="gfortran -shared"
 
 # Optional:
 # On systems such as Solaris 2.x, that allow specification of the
@@ -117,7 +121,9 @@
 # library-specification flags used to specify these libraries to
 # $SHARED_LD
  
-   SHARED_LIB_LIBS=""
+   SHARED_LIB_LIBS="-L/usr/X11R6/lib -lX11 -lpng -lc -lgfortran"
+
+   SHARED_LIB_CPGPLOT_LIBS="-L. -lpgplot"
 
 # Optional:
 # Compiler name used on Next systems to compile objective-C files.