Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2000 11:15:50 -0700 (PDT)
From:      "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/17848: remove support for CSRG libm
Message-ID:  <200004071815.LAA14160@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help

>Number:         17848
>Category:       misc
>Synopsis:       Patches to remove support for CSRG libm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr  7 11:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Steven G. Kargl
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
apl/uw
>Environment:

All version of FreeBSD.

>Description:

Compilation of CSRG libm is broken.  From the cvs repository,
it appears as if it has been broken for a long, long, long time. 

The SunPro math library in lib/msun is the default library, and
it appears to be maintained.

>How-To-Repeat:
cd /usr/lib/libm
make clean
make cleandepend
make depend
make


>Fix:

cd /usr/src/lib/libm
rm -rf *
cvs delete -m 'Moving libm to attic' .
cvs commit .

Apply this patch to etc/defaults/make.conf

--- make.conf.orig	Fri Apr  7 10:50:29 2000
+++ make.conf	Fri Apr  7 10:50:54 2000
@@ -73,10 +73,6 @@
 #
 #COPTFLAGS= -O -pipe
 #
-# To compile and install the 4.4 lite libm instead of the default use:
-#
-#WANT_CSRG_LIBM=	yes
-#
 # If you do not want unformatted manual pages to be compressed
 # when they are installed:
 #

Apply this patch to lib/Makefile

--- Makefile.orig	Fri Apr  7 10:57:05 2000
+++ Makefile	Fri Apr  7 10:57:31 2000
@@ -7,7 +7,7 @@
 # csu must be built before all shared libaries for ELF.
 # libcom_err must be built before libkrb, libpam and libss.
 # libcrypt must be built before libkrb, libpam and libskey.
-# libm must be built before libg++ and libstdc++.
+# msun must be built before libg++ and libstdc++.
 # libmd must be built before libatm, libopie, libradius, libskey, and
 # libtacplus.
 # libncurses must be built before libdialog, libedit and libreadline.
@@ -18,7 +18,7 @@
 #
 # Otherwise, the SUBDIR list should be in alphabetical order.
 
-SUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd \
+SUBDIR=	${_csu} libcom_err ${_libcrypt} msun libmd \
 	libncurses libradius libskey libtacplus libutil \
 	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
 	libcam libcompat libdevstat libdisk libedit libfetch libform \
@@ -53,12 +53,6 @@
 _compat=	compat
 _libncp=	libncp
 _libvgl=	libvgl
-.endif
-
-.if defined(WANT_CSRG_LIBM)
-_libm=		libm
-.else
-_libm=		msun
 .endif
 
 .if ${MACHINE_ARCH} == "alpha"

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004071815.LAA14160>