Re: libtool not generating / installing .so, even tho config says it should

2011-07-06 Thread Ralf Corsepius

On 07/06/2011 01:54 AM, ScottLadd wrote:



I've been writing configure.ac scripts for a long time, and now,
unexpectedly, on a new Kubuntu 11.04 installation and on a Fedora 15
install, libtool not longer generates and installs shared objects. Same
scripts I've used before, different behavior.


I don't know if this had ever worked, but the culprit seems to be this 
part of your configure.ac:


if test x$gccopt = xyes
then
CFLAGS=-std=gnu99 -pedantic -Wall -Wno-format -lpthread -lrt -O2 
-g0 -march=native

else
CFLAGS=-std=gnu99 -pedantic -Wall -Wno-format -lpthread -lrt -g 
-O2 -static

fi


Besides this, this part overrides CFLAGS with hard-coded compiler- and 
system-specific CFLAGS - Not a good idea.


Ralf

___
https://lists.gnu.org/mailman/listinfo/libtool


Re: libtool not generating / installing .so, even tho config says it should

2011-07-06 Thread Scott Robert Ladd
Thank you ever so much. In past editions, the compiles included the default
CFLAGS followed by the ones I specified.

..Scott

On Wed, Jul 6, 2011 at 2:26 AM, Ralf Corsepius rc040...@freenet.de wrote:

 On 07/06/2011 01:54 AM, ScottLadd wrote:



 I've been writing configure.ac scripts for a long time, and now,
 unexpectedly, on a new Kubuntu 11.04 installation and on a Fedora 15
 install, libtool not longer generates and installs shared objects. Same
 scripts I've used before, different behavior.


 I don't know if this had ever worked, but the culprit seems to be this part
 of your configure.ac:

 if test x$gccopt = xyes
 then
CFLAGS=-std=gnu99 -pedantic -Wall -Wno-format -lpthread -lrt -O2 -g0
 -march=native
 else
CFLAGS=-std=gnu99 -pedantic -Wall -Wno-format -lpthread -lrt -g -O2
 -static
 fi


 Besides this, this part overrides CFLAGS with hard-coded compiler- and
 system-specific CFLAGS - Not a good idea.

 Ralf

 __**_
 https://lists.gnu.org/mailman/**listinfo/libtoolhttps://lists.gnu.org/mailman/listinfo/libtool

___
https://lists.gnu.org/mailman/listinfo/libtool