Compiling with debug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling with debug

Edward Scott Meadows-2
I'd like to compile libcruft with debugging information so
that I can use the libraries in another application.  I've
tried

        make CFLAGS=-g CXXFLAGS=-g LDFLAGS=-g libcruft

and it didn't compile with -g.  I've even tried to define
F77="g77 -g" which also didn't work.  What's the incantation
to do this right?  I'm using g77.

Thanks.

--
Edward S. Meadows                  [hidden email]
Department of Chemical Engineering    Office (302) 831-0726
University of Delaware                   Fax (302) 831-1048
Newark, DE 19716                        Home (302) 369-0777


Reply | Threaded
Open this post in threaded view
|

Compiling with debug

John W. Eaton-6
On 19-Jun-1998, Edward Scott Meadows <[hidden email]> wrote:

| I'd like to compile libcruft with debugging information so
| that I can use the libraries in another application.  I've
| tried
|
| make CFLAGS=-g CXXFLAGS=-g LDFLAGS=-g libcruft
|
| and it didn't compile with -g.  I've even tried to define
| F77="g77 -g" which also didn't work.  What's the incantation
| to do this right?  I'm using g77.
 
I think GNU Make uses FC as the variable name for the Fortran
compiler, not F77, so you could use

  make FC="g77 -g"

but probably the best way to do this is to use

  make FFLAGS=-g ...

instead.

jwe