svn commit: r384955 - in head/math/abacus: . files

Jan Beich jbeich at FreeBSD.org
Wed Apr 29 03:20:40 UTC 2015


Author: jbeich
Date: Wed Apr 29 03:20:39 2015
New Revision: 384955
URL: https://svnweb.freebsd.org/changeset/ports/384955

Log:
  math/abacus: drop -fPIC from static library at the cost of buildtime

Modified:
  head/math/abacus/Makefile
  head/math/abacus/files/patch-Makefile

Modified: head/math/abacus/Makefile
==============================================================================
--- head/math/abacus/Makefile	Wed Apr 29 03:20:25 2015	(r384954)
+++ head/math/abacus/Makefile	Wed Apr 29 03:20:39 2015	(r384955)
@@ -3,7 +3,7 @@
 
 PORTNAME=	abacus
 DISTVERSION=	3.2betaU1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	math
 MASTER_SITES=	http://www.informatik.uni-koeln.de/abacus/
 

Modified: head/math/abacus/files/patch-Makefile
==============================================================================
--- head/math/abacus/files/patch-Makefile	Wed Apr 29 03:20:25 2015	(r384954)
+++ head/math/abacus/files/patch-Makefile	Wed Apr 29 03:20:39 2015	(r384955)
@@ -40,13 +40,15 @@
  CCFLAG_PARALLEL =
  
  # default parallel flags (to be defined in machine specific makefile).
-@@ -141,7 +141,8 @@
- DEPEND = $(OBJDIR)/Makefile.dep
- 
- CCFLAGS = $(ABACUS_INCLUDE) $(CCFLAG_SYS) $(CCFLAG_COMPILER) \
--	$(CCFLAG_TEMPLATE) $(CCFLAG_PARALLEL) $(CCFLAG_DEBOPT) 
-+	$(CCFLAG_TEMPLATE) $(CCFLAG_PARALLEL) $(CCFLAG_DEBOPT) \
-+	-fPIC
+@@ -177,6 +177,11 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.cc
+ 	$(CCC)  $(CCFLAGS) $(ADDFLAGS) -c $< -o $@
+ 	$(STRIP) $@
+ 
++# the shared object files
++$(OBJDIR)/%.So: $(SRCDIR)/%.cc
++	$(CCC) -fPIC $(CCFLAGS) $(ADDFLAGS) -c $< -o $@
++	$(STRIP) $@
++
  
  #######################################################################
  #
@@ -63,9 +65,9 @@
  	@$(PRE_ARCHIVE) $(ABACUS_O)
  	$(ARCHIVE) $@ $(ABACUS_O)
  
-+$(LIBDIR)/stuff/abacus-base.so.1: $(ABACUS_O)
++$(LIBDIR)/stuff/abacus-base.so.1: $(ABACUS_O:%.o=%.So)
 +	rm -f $@
-+	$(CXX) -shared -o $@ $(ABACUS_O)
++	$(CXX) -shared -o $@ $(ABACUS_O:%.o=%.So)
 +
  # Build the library distribution directory (lib and lib/stuff)
 -lib-all: subdirs abacus-base lpif interface $(ADDITIONAL_LIB_ALL)


More information about the svn-ports-head mailing list