[libmpikmeans] 07/16: d/patches: Update patch Properly-build-shared-and-static-libraries-programs

Christian Kastner ckk at moszumanska.debian.org
Sun Apr 24 16:24:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

ckk pushed a commit to branch master
in repository libmpikmeans.

commit 1a5f18dfa6b2720ca745e8b809a543e8a54e4352
Author: Christian Kastner <ckk at kvr.at>
Date:   Sun Apr 24 15:02:53 2016 +0200

    d/patches: Update patch Properly-build-shared-and-static-libraries-programs
    
    Filter out -pie, -fpie, and -fPIE when building the shared library.
---
 ...uild-shared-and-static-libraries-programs.patch | 25 +++++++++++-----------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/debian/patches/Properly-build-shared-and-static-libraries-programs.patch b/debian/patches/Properly-build-shared-and-static-libraries-programs.patch
index 3df2d35..631165f 100644
--- a/debian/patches/Properly-build-shared-and-static-libraries-programs.patch
+++ b/debian/patches/Properly-build-shared-and-static-libraries-programs.patch
@@ -1,4 +1,4 @@
-From: Christian Kastner <debian at kvr.at>
+From: Christian Kastner <ckk at debian.org>
 Date: Mon, 11 Apr 2011 19:26:09 +0200
 Subject: Properly build shared and static libraries, programs
 
@@ -8,16 +8,16 @@ extensions for all supported Python versions. Furthermore, add an install
 target.
 
 Forwarded: not-needed
-Last-Update: 2014-07-26
+Last-Update: 2016-04-24
 ---
- Makefile | 128 +++++++++++++++++++++++++++++++++++++--------------------------
- 1 file changed, 75 insertions(+), 53 deletions(-)
+ Makefile | 129 +++++++++++++++++++++++++++++++++++++--------------------------
+ 1 file changed, 76 insertions(+), 53 deletions(-)
 
 diff --git a/Makefile b/Makefile
-index 69b725b..df1b22d 100644
+index 69b725b..d089359 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -1,16 +1,38 @@
+@@ -1,16 +1,39 @@
 -#
 -# Choose your compiler
 -#
@@ -32,8 +32,9 @@ index 69b725b..df1b22d 100644
 +LDFLAGS +=
 +LIBS +=
 +
-+LIB_CFLAGS = $(CFLAGS) -fPIC
-+LIB_LDFLAGS = $(LDFLAGS)
++# Libraries must not be compiled/linked with -pie, -fpie or -FPIE
++LIB_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) -fPIC
++LIB_LDFLAGS = $(filter-out -fPIE, $(filter-out -pie,$(LDFLAGS)))
 +LIB_LIBS = $(LIBS)
  
 -#CC = gcc-4.2
@@ -53,7 +54,7 @@ index 69b725b..df1b22d 100644
 +LVER ?= 0
 +LSUBVER ?= 0
 +LIBFILE = libmpikmeans.so.$(LVER).$(LSUBVER)
-+ 
++
 +bindir ?= /usr/bin/
 +libdir ?= /usr/lib/
 +bindest = $(DESTDIR)$(bindir)
@@ -68,7 +69,7 @@ index 69b725b..df1b22d 100644
  
  #
  # MPI KMEANS FLAGS
-@@ -25,19 +47,6 @@ MATLABDIR=/agbs/share/sw/matlab
+@@ -25,19 +48,6 @@ MATLABDIR=/agbs/share/sw/matlab
  MATLAB_INCLUDE=-I$(MATLABDIR)/extern/include
  
  #
@@ -88,7 +89,7 @@ index 69b725b..df1b22d 100644
  # ARCHITECURE
  # 
  
-@@ -49,34 +58,31 @@ MATLAB_LIB=-L$(MATLABDIR)/bin/glnx86 -lmex
+@@ -49,34 +59,31 @@ MATLAB_LIB=-L$(MATLABDIR)/bin/glnx86 -lmex
  #SUFFIX=mexa64
  #MATLAB_LIB=-L$(MATLABDIR)/bin/glnxa64 -lmex
  
@@ -142,7 +143,7 @@ index 69b725b..df1b22d 100644
  
  %_mex.o:	%_mex.cxx
  	$(CC) $(CFLAGS) $(MATLAB_INCLUDE) $(VERBOSEFLAG) $(PRECISION) -c $^ -o $@
-@@ -87,18 +93,34 @@ mpi_kmeans_mex.$(SUFFIX):	libmpikmeans mpi_kmeans_mex.o
+@@ -87,18 +94,34 @@ mpi_kmeans_mex.$(SUFFIX):	libmpikmeans mpi_kmeans_mex.o
  mpi_assign_mex.$(SUFFIX):	libmpikmeans mpi_assign_mex.o
  	$(CC) mpi_assign_mex.o -shared -o mpi_assign_mex.$(SUFFIX) libmpikmeans.a $(MATLAB_LIB)
  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libmpikmeans.git



More information about the debian-science-commits mailing list