You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 2001/04/03 05:05:10 UTC
Re: cvs commit: apache-1.3/src/support README ab.8 ab.c
On 1 Apr 2001 dirkx@apache.org wrote:
> + sdtot = (requests > 1) ? sqrt(sdtot / (requests - 1)) : 0;
> + sdcon = (requests > 1) ? sqrt(sdcon / (requests - 1)) : 0;
> + sdd = (requests > 1) ? sqrt(sdd / (requests - 1)) : 0;
> + sdwait = (requests > 1) ? sqrt(sdwait / (requests - 1)) : 0;
So ab now requires libm to be linked in on nearly any system, but only
a few particular ones have it in the LDFLAGS in Configure.
What do the systems that have -lm already have it in there for?
And what is the best way to add it in for ab? Right now, it doesn't
compile on FreeBSD, etc.
Re: cvs commit: apache-1.3/src/support README ab.8 ab.c
Posted by Sander Temme <sc...@covalent.net>.
on 4/2/01 8:05 PM, Marc Slemko at marcs@znep.com wrote:
> And what is the best way to add it in for ab? Right now, it doesn't
> compile on FreeBSD, etc.
Use this on the src/support/Makefile.tmpl:
--- Makefile.tmpl-dist Thu Dec 9 09:19:48 1999
+++ Makefile.tmpl Sun Mar 11 12:39:23 2001
@@ -1,6 +1,12 @@
-CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
-LIBS=-lap -los $(EXTRA_LIBS) $(LIBS1)
+# SSL lines
+#
+#CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) -DUSE_SSL
+#LIBS=-L/usr/local/ssl -lap -los $(EXTRA_LIBS) $(LIBS1) -lssl -lcrypto
+
+ CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
+ LIBS=-lap -los $(EXTRA_LIBS) $(LIBS1)
+
INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) -L$(OSDIR) -L$(SRCDIR)/ap
@@ -26,7 +32,7 @@
$(CC) $(CFLAGS) -o logresolve $(LDFLAGS) logresolve.o $(LIBS)
ab: ab.o
- $(CC) $(CFLAGS) -o ab $(LDFLAGS) ab.o $(LIBS)
+ $(CC) $(CFLAGS) -o ab $(LDFLAGS) ab.o $(LIBS) -lm
apxs: apxs.pl
sed <apxs.pl >apxs \
This should probably also go into CVS. I haven't looked into how this works
in 2.0: there probably be autoconf checks for the functions and -lm is
incantated as necessary.
S.
--
Covalent Technologies sctemme@covalent.net
Engineering group Voice: (415) 536 5214
706 Mission St. Fax: (415) 536 5210
San Francisco CA 94103
PGP Fingerprint: 1E74 4E58 DFAC 2CF5 6A03 5531 AFB1 96AF B584 0AB1