pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/meta-pkgs/boost Pass CFLAGS and LDFLAGS to compiler. F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/522f27679f32
branches:  trunk
changeset: 365372:522f27679f32
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jul 14 17:35:07 2017 +0000

description:
Pass CFLAGS and LDFLAGS to compiler. Fixes RELRO build.

diffstat:

 meta-pkgs/boost/distinfo         |   6 +++---
 meta-pkgs/boost/patches/patch-ae |   6 +++---
 meta-pkgs/boost/patches/patch-ag |  21 ++++++++++++++++++---
 3 files changed, 24 insertions(+), 9 deletions(-)

diffs (77 lines):

diff -r d1c1e453555f -r 522f27679f32 meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo  Fri Jul 14 17:28:53 2017 +0000
+++ b/meta-pkgs/boost/distinfo  Fri Jul 14 17:35:07 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.101 2017/06/28 08:27:00 joerg Exp $
+$NetBSD: distinfo,v 1.102 2017/07/14 17:35:07 wiz Exp $
 
 SHA1 (boost_1_64_0.tar.bz2) = 51421ef259a4530edea0fbfc448460fcc5c64edb
 RMD160 (boost_1_64_0.tar.bz2) = 377ea4325f5e3ccd2820002143bb5baa1aeb3b41
@@ -8,8 +8,8 @@
 SHA1 (patch-ab) = 234dfd1582dd62f0b149ee12aabcc1f1f602af97
 SHA1 (patch-ac) = 32d14b50682dae1950ed927ecb9318ad6b07687a
 SHA1 (patch-ad) = 0e5dc31c3425de94444f97a9b7dec97ed5967733
-SHA1 (patch-ae) = ac2e4afcf243c2fee2394cfe3fe92f4890e9ab83
-SHA1 (patch-ag) = 117eabbbbc26d04bb5e56df5ad92e55b5061c0f8
+SHA1 (patch-ae) = f72c166163dbcbfb0408a49b57d7af24debc620b
+SHA1 (patch-ag) = dc59422ade217aa49eb5d6928f02f7bc4734aa43
 SHA1 (patch-aq) = 7503ba9813a143b9e99e43b3017a30bc5543fe16
 SHA1 (patch-ar) = 2fec2c51272cc4ee376e6538d8f1fd8561a7f0a3
 SHA1 (patch-boost_atomic_detail_ops_gcc_sparc.hpp) = 6cd1b6fbb8659d7af8ecff63d4558f365f28c12b
diff -r d1c1e453555f -r 522f27679f32 meta-pkgs/boost/patches/patch-ae
--- a/meta-pkgs/boost/patches/patch-ae  Fri Jul 14 17:28:53 2017 +0000
+++ b/meta-pkgs/boost/patches/patch-ae  Fri Jul 14 17:35:07 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ae,v 1.8 2014/08/13 10:56:36 adam Exp $
+$NetBSD: patch-ae,v 1.9 2017/07/14 17:35:07 wiz Exp $
 
-Pass CFLAGS to the compiler.
+Pass CFLAGS and LDFLAGS to the compiler.
 
 --- tools/build/src/engine/build.sh.orig       2011-02-24 08:42:55.000000000 +0000
 +++ tools/build/src/engine/build.sh
@@ -8,7 +8,7 @@
      error_exit "Unknown toolset: $BOOST_JAM_TOOLSET"
      ;;
  esac
-+BOOST_JAM_CC="${BOOST_JAM_CC} ${CFLAGS}"
++BOOST_JAM_CC="${BOOST_JAM_CC} ${CFLAGS} ${LDFLAGS}"
  
  echo "###"
  echo "### Using '$BOOST_JAM_TOOLSET' toolset."
diff -r d1c1e453555f -r 522f27679f32 meta-pkgs/boost/patches/patch-ag
--- a/meta-pkgs/boost/patches/patch-ag  Fri Jul 14 17:28:53 2017 +0000
+++ b/meta-pkgs/boost/patches/patch-ag  Fri Jul 14 17:35:07 2017 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-ag,v 1.8 2014/08/13 10:56:36 adam Exp $
+$NetBSD: patch-ag,v 1.9 2017/07/14 17:35:07 wiz Exp $
 
 Pass CFLAGS to the compiler.
 
---- tools/build/src/engine/build.jam.orig      2011-02-24 08:50:34.000000000 +0000
+--- tools/build/src/engine/build.jam.orig      2017-07-14 17:28:45.790581884 +0000
 +++ tools/build/src/engine/build.jam
-@@ -192,7 +192,7 @@ toolset como como : "-o " : -D
+@@ -199,7 +199,7 @@ toolset como como : "-o " : -D
      : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
  ## Clang Linux 2.8+
  toolset clang clang :  "-o " : -D
@@ -13,3 +13,18 @@
      [ opt --release : -Os ]
      [ opt --debug : -g -O0 -fno-inline ]
      [ opt --profile : -finline-functions -g ]
+@@ -215,12 +215,12 @@ toolset darwin cc :  "-o " : -D
+     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
+ ## GCC 2.x, 3.x, 4.x
+ toolset gcc gcc : "-o " : -D
+-    : -pedantic -fno-strict-aliasing
++    : $(CFLAGS) -pedantic -fno-strict-aliasing
+     [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
+     [ opt --debug : -g -O0 -fno-inline ]
+     [ opt --profile : -O3 -g -pg ]
+     -I$(--python-include) -I$(--extra-include) -Wno-long-long
+-    : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
++    : $(LDFLAGS) -L$(--python-lib[1]) -l$(--python-lib[2]) ;
+ ## GCC 2.x, 3.x on CYGWIN but without cygwin1.dll
+ toolset gcc-nocygwin gcc : "-o " : -D
+     : -s -O3 -mno-cygwin



Home | Main Index | Thread Index | Old Index