[SCM] an open source computer algebra system branch, debian, updated. d154cbf0957d867b9dbc99a0b1a1b5bda01cf07e

Bernhard R. Link brlink at debian.org
Sun Mar 4 17:12:40 UTC 2012


The following commit has been merged in the debian branch:
commit 27cfd38848907e413c1684fff373c1b1b96fd012
Author: Bernhard R. Link <brlink at debian.org>
Date:   Sun Mar 4 16:00:48 2012 +0100

    remove some unneeded libararies from the binaries

diff --git a/debian/rules b/debian/rules
index 51db977..c2c9a1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -160,6 +160,11 @@ configure-stamp:
 	sed -e 's#-I$$(includedir) ##' -i factory/GNUmakefile
 	# ncurses is only needed for the internal readline not available with glibc:
 	sed	-e 's# *-lncurses##'	-i Singular/Makefile
+	# only called by the library, no need to link binaries against
+	sed	-e '/^LIBS\>/s# *-lnsl##' \
+		-e '/^LIBS\>/s# *-lntl##' \
+		-e '/^LIBS\>/s# *-ldl##' \
+		-i Singular/Makefile
 	touch $@
 
 build build-arch: build-stamp
@@ -167,7 +172,7 @@ build build-arch: build-stamp
 EXAMPLE_EXCLUDE=-exclude MP -exclude gfan -exclude normaliz -exclude sing4ti2 -exclude memory -exclude dynlib
 
 build-stamp: configure-stamp
-	$(MAKE) LIBSINGULAR_LD='$(CXX) $(LDFLAGS) -L../omalloc' DL_LIBSG='' GLIBC_DYN_FIX="-lc"
+	$(MAKE) LIBSINGULAR_LD='$(CXX) $(LDFLAGS) -L../omalloc' LD_DYN_FLAGS2='' DL_LIBSG='' GLIBC_DYN_FIX="-lc"
 	$(MAKE) -C Singular libparse
 	cd Singular && ln -sf ../kernel/p_*.so .
 	SINGULAR_BIN_DIR=$(CURDIR)/Singular \

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list