pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/tcl Honor LDFLAGS on NetBSD. Fixes RELRO build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42047c8ae77d
branches:  trunk
changeset: 365405:42047c8ae77d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 16 08:50:18 2017 +0000

description:
Honor LDFLAGS on NetBSD. Fixes RELRO build.

Every OPSYS has its own case for this. Please fix your
favorite operating system similarly.

diffstat:

 lang/tcl/distinfo                                       |  16 ++++++++--------
 lang/tcl/patches/patch-pkgs_itcl4.0.5_configure         |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_sqlite3.13.0_configure      |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_tdbc1.0.4_configure         |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_tdbcmysql1.0.4_configure    |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_tdbcodbc1.0.4_configure     |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_tdbcpostgres1.0.4_configure |  11 +++++++++--
 lang/tcl/patches/patch-pkgs_thread2.8.0_configure       |  11 +++++++++--
 8 files changed, 71 insertions(+), 22 deletions(-)

diffs (269 lines):

diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/distinfo
--- a/lang/tcl/distinfo Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/distinfo Sun Jul 16 08:50:18 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.69 2016/09/03 11:58:01 adam Exp $
+$NetBSD: distinfo,v 1.70 2017/07/16 08:50:18 wiz Exp $
 
 SHA1 (tcl8.6.6-src.tar.gz) = 169dd1589cad62c9fac4257c113db245da502cd0
 RMD160 (tcl8.6.6-src.tar.gz) = 2386a69eb841f8af51c1b124f68e0b812a225cca
@@ -7,14 +7,14 @@
 SHA1 (patch-generic_tclInt.h) = fde6a5458a138b6d61fdbab1269b1c5111a28b22
 SHA1 (patch-generic_tclPort.h) = 36ff05b22591d588952e55d0f13c2ef52e371d1e
 SHA1 (patch-generic_tclPosixStr.c) = 68da211865282fe7124cad71381658f8dfb986d6
-SHA1 (patch-pkgs_itcl4.0.5_configure) = 8c48062e1f90f3843b6adcf2b5d61fa40b80f6e2
+SHA1 (patch-pkgs_itcl4.0.5_configure) = 55c1a3e14247957a1eb26a06cd7327b8ee7e4a87
 SHA1 (patch-pkgs_sqlite3.13.0_Makefile.in) = 1205936335cda5d413c24da33608a9bbec6a65a9
-SHA1 (patch-pkgs_sqlite3.13.0_configure) = 80a40d46ffe693ed431c10a48a82401ba7707549
-SHA1 (patch-pkgs_tdbc1.0.4_configure) = 058f0ec3a6cf506c1998a30a81364f7856d17508
-SHA1 (patch-pkgs_tdbcmysql1.0.4_configure) = e633bb54d886f72dae485c2110488bb1441c965b
-SHA1 (patch-pkgs_tdbcodbc1.0.4_configure) = 5e93d9edc663f31e714726b4e3f9f4af6221fac8
-SHA1 (patch-pkgs_tdbcpostgres1.0.4_configure) = 182a106fd8559d08bb4d8d611972473640e9838a
-SHA1 (patch-pkgs_thread2.8.0_configure) = 0dfc552a4cbce2e100c640722ec9837f02226819
+SHA1 (patch-pkgs_sqlite3.13.0_configure) = 46cf2337e3b2af95b67537b127445c71d6c973cd
+SHA1 (patch-pkgs_tdbc1.0.4_configure) = 2413c9b1709a0a56e540850f3a6aaa694bf93a74
+SHA1 (patch-pkgs_tdbcmysql1.0.4_configure) = 6140196762a898467f5d83950159bf333a1f3f35
+SHA1 (patch-pkgs_tdbcodbc1.0.4_configure) = 28d8d39386244dda3e93b92ad604cd6990b1a256
+SHA1 (patch-pkgs_tdbcpostgres1.0.4_configure) = 247929d01d2b1daba893da4c4eba1a78ea93d69e
+SHA1 (patch-pkgs_thread2.8.0_configure) = c259fa206ea89463833f18aa262ed71b01807071
 SHA1 (patch-tests_load.test) = 438695ab76e01646e49aadc01c44344a5495eabb
 SHA1 (patch-tests_pkgMkIndex.test) = 70d1042c1f4743052c5fa191fa7c4732a08e28a2
 SHA1 (patch-unix_Makefile.in) = 6fa60e07f21842e987bc20d23d4be82cba5bc905
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_itcl4.0.5_configure
--- a/lang/tcl/patches/patch-pkgs_itcl4.0.5_configure   Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_itcl4.0.5_configure   Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_itcl4.0.5_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+$NetBSD: patch-pkgs_itcl4.0.5_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/itcl4.0.5/configure.orig      2016-07-12 15:29:40.000000000 +0000
 +++ pkgs/itcl4.0.5/configure
@@ -14,7 +15,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7464,8 +7463,6 @@ fi
+@@ -7464,13 +7463,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -23,6 +24,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7487,7 +7484,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_sqlite3.13.0_configure
--- a/lang/tcl/patches/patch-pkgs_sqlite3.13.0_configure        Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_sqlite3.13.0_configure        Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_sqlite3.13.0_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+$NetBSD: patch-pkgs_sqlite3.13.0_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/sqlite3.13.0/configure.orig   2016-05-31 15:48:11.000000000 +0000
 +++ pkgs/sqlite3.13.0/configure
@@ -13,7 +14,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7310,8 +7310,6 @@ fi
+@@ -7310,13 +7310,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -22,6 +23,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7333,7 +7331,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_tdbc1.0.4_configure
--- a/lang/tcl/patches/patch-pkgs_tdbc1.0.4_configure   Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_tdbc1.0.4_configure   Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_tdbc1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+$NetBSD: patch-pkgs_tdbc1.0.4_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/tdbc1.0.4/configure.orig      2016-01-28 18:05:47.000000000 +0000
 +++ pkgs/tdbc1.0.4/configure
@@ -14,7 +15,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7539,8 +7538,6 @@ fi
+@@ -7539,13 +7538,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -23,6 +24,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7562,7 +7559,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_tdbcmysql1.0.4_configure
--- a/lang/tcl/patches/patch-pkgs_tdbcmysql1.0.4_configure      Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_tdbcmysql1.0.4_configure      Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_tdbcmysql1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+$NetBSD: patch-pkgs_tdbcmysql1.0.4_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/tdbcmysql1.0.4/configure.orig 2016-01-28 18:06:23.000000000 +0000
 +++ pkgs/tdbcmysql1.0.4/configure
@@ -14,7 +15,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7885,8 +7884,6 @@ fi
+@@ -7885,13 +7884,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -23,6 +24,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7908,7 +7905,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_tdbcodbc1.0.4_configure
--- a/lang/tcl/patches/patch-pkgs_tdbcodbc1.0.4_configure       Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_tdbcodbc1.0.4_configure       Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_tdbcodbc1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+$NetBSD: patch-pkgs_tdbcodbc1.0.4_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/tdbcodbc1.0.4/configure.orig  2016-01-28 18:06:52.000000000 +0000
 +++ pkgs/tdbcodbc1.0.4/configure
@@ -14,7 +15,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7885,8 +7884,6 @@ fi
+@@ -7885,13 +7884,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -23,6 +24,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7908,7 +7905,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_tdbcpostgres1.0.4_configure
--- a/lang/tcl/patches/patch-pkgs_tdbcpostgres1.0.4_configure   Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_tdbcpostgres1.0.4_configure   Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_tdbcpostgres1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+$NetBSD: patch-pkgs_tdbcpostgres1.0.4_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/tdbcpostgres1.0.4/configure.orig      2016-01-28 18:07:18.000000000 +0000
 +++ pkgs/tdbcpostgres1.0.4/configure
@@ -14,7 +15,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7885,8 +7884,6 @@ fi
+@@ -7885,13 +7884,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -23,6 +24,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7908,7 +7905,7 @@ fi
  
  fi
diff -r 3aba1d2ff15c -r 42047c8ae77d lang/tcl/patches/patch-pkgs_thread2.8.0_configure
--- a/lang/tcl/patches/patch-pkgs_thread2.8.0_configure Sun Jul 16 08:30:07 2017 +0000
+++ b/lang/tcl/patches/patch-pkgs_thread2.8.0_configure Sun Jul 16 08:50:18 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-pkgs_thread2.8.0_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+$NetBSD: patch-pkgs_thread2.8.0_configure,v 1.2 2017/07/16 08:50:18 wiz Exp $
 
 Add support for DragonFly.
+Honor LDFLAGS on NetBSD.
 
 --- pkgs/thread2.8.0/configure.orig    2016-07-05 13:37:40.000000000 +0000
 +++ pkgs/thread2.8.0/configure
@@ -13,7 +14,7 @@
                ;;
            esac
            case "$arch" in
-@@ -7540,8 +7540,6 @@ fi
+@@ -7540,13 +7540,11 @@ fi
  
  fi
            # OpenBSD doesn't do version numbers with dots.
@@ -22,6 +23,12 @@
            ;;
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
++          SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS} ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes; then :
 @@ -7563,7 +7561,7 @@ fi
  
  fi



Home | Main Index | Thread Index | Old Index