Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2020 07:28:45 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r548767 - head/math/lrslib/files
Message-ID:  <202009160728.08G7SjJv004006@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Sep 16 07:28:45 2020
New Revision: 548767
URL: https://svnweb.freebsd.org/changeset/ports/548767

Log:
  math/lrslib: Add the forgotten patch

Added:
  head/math/lrslib/files/
  head/math/lrslib/files/patch-makefile   (contents, props changed)

Added: head/math/lrslib/files/patch-makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/lrslib/files/patch-makefile	Wed Sep 16 07:28:45 2020	(r548767)
@@ -0,0 +1,41 @@
+--- makefile.orig	2020-05-27 03:16:28 UTC
++++ makefile
+@@ -194,7 +194,7 @@ SHLIBBIN=lrs-shared lrsnash-shared
+ # Building (linking) the shared library, and relevant symlinks.
+ 
+ ${SHLIB}: ${SHLIBOBJ}
+-	$(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} -lgmp
++	$(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} $(LDFLAGS) -lgmp
+ 
+ ${SONAME}: ${SHLIB}
+ 	ln -sf ${SHLIB} ${SONAME}
+@@ -207,11 +207,11 @@ ${SHLINK}: ${SONAME}
+ all-shared: ${SHLIBBIN}
+ 
+ lrs-shared: ${SHLINK} lrs.o
+-	$(CC) lrs.o -o $@ -L . -llrs
++	$(CC) lrs.o -o $@ -L . $(LDFLAGS) -llrs
+ 
+ 
+ lrsnash-shared: ${SHLINK}  lrsnash.c
+-	$(CC) -DGMP -DMA lrsnash.c  lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs -lgmp
++	$(CC) -DGMP -DMA lrsnash.c  lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs $(LDFLAGS) -lgmp
+ 
+ # build object files for the shared library
+ 
+@@ -246,13 +246,13 @@ install: all-shared install-common
+ 	mkdir -p $(DESTDIR)${prefix}/bin
+ 	for file in ${SHLIBBIN}; do cp $${file} $(DESTDIR)${prefix}/bin/$$(basename $$file -shared); done
+ 	mkdir -p $(DESTDIR)${prefix}/lib
+-	install -t $(DESTDIR)${prefix}/lib $(SHLIB)
++	install $(SHLIB) $(DESTDIR)${prefix}/lib
+ 	cd $(DESTDIR)${prefix}/lib && ln -sf $(SHLIB) $(SHLINK)
+ 	cd $(DESTDIR)${prefix}/lib && ln -sf $(SHLIB) $(SONAME)
+ 
+ install-common:
+ 	mkdir -p $(DESTDIR)${prefix}/include/lrslib
+-	install -t $(DESTDIR)${prefix}/include/lrslib ${INSTALL_INCLUDES}
++	install ${INSTALL_INCLUDES} $(DESTDIR)${prefix}/include/lrslib
+ 
+ ######################################################################
+ clean:		



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