| 
      
      
      From: Joachim G. <joa...@ip...> - 2003-11-14 18:05:51
       | 
| Hello, I tried to compile and install the 5.2.1-version of plplot on my RedHat8.0 machine enabling f77 using the Lahey- Fujitsu-compiler f95f. Compilation and intallation went fine but when linking to my other codes I had a hard time upto the point when I noticed that the whole plplot was compiled with the -g flag (I think this is debugging) and that I also had to compile my other code with -g. I tried to configure plplot with --disable-debugging but I was not able to get rid of this stupid -g flag. I don't want to run all of my codes in debug-mode. Any ideas what to do? Best regards, Joachim -- -----------------------------------------------@\\ Joachim Geiger @\\ Institute for Plasma Physics, Euratom Association\\\ Department E3 \\\__ Wendelsteinstr. 1 ( \\ \ D-17491 Greifswald, Germany \_ \\(_ Tel.: 03834/88-2327 ) \\ \ e-mail: joa...@ip... \ - | --------------------------------------------------- \____/ | 
| 
      
      
      From: Rafael L. <ra...@de...> - 2003-11-14 18:31:00
       | 
| * Joachim Geiger <joa...@ip...> [2003-11-14 19:05]: > I tried to compile and install the 5.2.1-version of plplot > on my RedHat8.0 machine enabling f77 using the Lahey- > Fujitsu-compiler f95f. Compilation and intallation went fine > but when linking to my other codes I had a hard time upto > the point when I noticed that the whole plplot was compiled > with the -g flag (I think this is debugging) and that I also > had to compile my other code with -g. I tried to configure > plplot with --disable-debugging but I was not able to get > rid of this stupid -g flag. I don't want to run all of my codes > in debug-mode. Any ideas what to do? I do not know if what I am going to say matters in this case, but the Debian packages install stripped versions of the library files: $ for f in src/.libs/libplplotd.so.9.0.0 /usr/lib/libplplotd.so.9.0.0 ; do file $f ; ls -l $f ; done src/.libs/libplplotd.so.9.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped -rwxr-xr-x 1 rafael rafael 776087 2003-10-30 09:55 src/.libs/libplplotd.so.9.0.0 /usr/lib/libplplotd.so.9.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped -rw-r--r-- 1 root root 222224 2003-10-29 22:25 /usr/lib/libplplotd.so.9.0.0 Maybe you could try to do the same using the strip command (or better: change from RH to Debian :-) -- Rafael | 
| 
      
      
      From: Rafael L. <ra...@de...> - 2003-11-14 18:42:56
       | 
| * Rafael Laboissiere <ra...@de...> [2003-11-14 19:30]:
> Maybe you could try to do the same using the strip command (or better:
> change from RH to Debian :-)
I forgot to give you the reference:
    http://lwn.net/Articles/56151/
    
-- 
Rafael
 | 
| 
      
      
      From: Alan W. I. <ai...@us...> - 2003-11-14 20:49:04
       | 
| On 2003-11-14 19:42+0100 Rafael Laboissiere wrote: > * Rafael Laboissiere <ra...@de...> [2003-11-14 19:30]: > > > Maybe you could try to do the same using the strip command (or better: > > change from RH to Debian :-) > > I forgot to give you the reference: > > http://lwn.net/Articles/56151/ That's a good article and the comments afterward are well worth reading as well. Thanks for bringing that URL to our attention. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ | 
| 
      
      
      From: Alan W. I. <ai...@us...> - 2003-11-14 20:19:19
       | 
| On 2003-11-14 19:05+0100 Joachim Geiger wrote: > ... I was not able to get rid of this stupid -g flag. Here is what is going on according to the documentation of the AC_PROG_CC you get from 'info autoconf'. By default it chooses the -g flag if your compiler will accept that flag (which is apparently the case for you.) But if you want to override that default you must set the environment variable CFLAGS to whatever option you like that is appropriate for your compiler, i.e., use make 'CFLAGS = ' or make 'CFLAGS = -O2' I notice in the default Makefile generated on my system that CXXFLAGS and FFLAGS also contain the -g option so you will have to set those variables to whatever compile options are appropriate for your c++ and fortran compilers as well. Rafael has suggested stripping your libraries, and my guess is that would work as well. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ | 
| 
      
      
      From: Rafael L. <lab...@ps...> - 2003-11-14 22:35:54
       | 
| * Alan W. Irwin <ai...@us...> [2003-11-14 12:19]: > On 2003-11-14 19:05+0100 Joachim Geiger wrote: > > > ... I was not able to get rid of this stupid -g flag. > > Here is what is going on according to the documentation of the AC_PROG_CC > you get from 'info autoconf'. By default it chooses the -g flag if your > compiler will accept that flag (which is apparently the case for you.) But > if you want to override that default you must set the environment variable > CFLAGS to whatever option you like that is appropriate for your compiler, > i.e., use > > make 'CFLAGS = ' > > or > > make 'CFLAGS = -O2' > > I notice in the default Makefile generated on my system that CXXFLAGS and > FFLAGS also contain the -g option so you will have to set those variables to > whatever compile options are appropriate for your c++ and fortran compilers > as well. > > Rafael has suggested stripping your libraries, and my guess is that would > work as well. It would be nice to provide a configure option for forcing the stripping of the libraries. This could be implemented in an install-hook target in src/Makefile.am. Should I write a TODO entry for this? -- Rafael | 
| 
      
      
      From: Joachim G. <joa...@ip...> - 2003-11-17 09:39:21
       | 
| Rafael Laboissiere wrote: >* Alan W. Irwin <ai...@us...> [2003-11-14 12:19]: > > > >>On 2003-11-14 19:05+0100 Joachim Geiger wrote: >> >> >> >>>... I was not able to get rid of this stupid -g flag. >>> >>> >>Here is what is going on according to the documentation of the AC_PROG_CC >>you get from 'info autoconf'. By default it chooses the -g flag if your >>compiler will accept that flag (which is apparently the case for you.) But >>if you want to override that default you must set the environment variable >>CFLAGS to whatever option you like that is appropriate for your compiler, >>i.e., use >> >>make 'CFLAGS = ' >> >>or >> >>make 'CFLAGS = -O2' >> >>I notice in the default Makefile generated on my system that CXXFLAGS and >>FFLAGS also contain the -g option so you will have to set those variables to >>whatever compile options are appropriate for your c++ and fortran compilers >>as well. >> >>Rafael has suggested stripping your libraries, and my guess is that would >>work as well. >> >> > >It would be nice to provide a configure option for forcing the stripping of >the libraries. This could be implemented in an install-hook target in >src/Makefile.am. Should I write a TODO entry for this? > > > Thanks alot, this worked. I followed Alan's suggestion giving make the appropriate compilation flags. Additionally, I would vote for the suggested TODO entry. Best regards, Joachim -- -----------------------------------------------@\\ Joachim Geiger @\\ Institute for Plasma Physics, Euratom Association\\\ Department E3 \\\__ Wendelsteinstr. 1 ( \\ \ D-17491 Greifswald, Germany \_ \\(_ Tel.: 03834/88-2327 ) \\ \ e-mail: joa...@ip... \ - | --------------------------------------------------- \____/ | 
| 
      
      
      From: Rafael L. <ra...@de...> - 2003-11-18 20:35:23
       | 
| * Joachim Geiger <joa...@ip...> [2003-11-17 10:38]:
> Thanks alot, this worked. I followed Alan's suggestion giving make the 
> appropriate compilation flags. Additionally, I would vote for the suggested
> TODO entry. 
Investigating further this issue (thanks, Alan, for bugging me!), I
discovered that Automake already includes this option.  In order to install
stripped versions of the libraries, all you have to do is:
    make install-strip
This should work in a cross-platform way.    
 
-- 
Rafael
 |