[141454] trunk/dports/devel/libtool

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 12 01:36:01 PST 2015


Revision: 141454
          https://trac.macports.org/changeset/141454
Author:   jeremyhu at macports.org
Date:     2015-10-18 22:03:26 -0700 (Sun, 18 Oct 2015)
Log Message:
-----------
libtool: Add support for ASan

Modified Paths:
--------------
    trunk/dports/devel/libtool/Portfile

Added Paths:
-----------
    trunk/dports/devel/libtool/files/asan.patch

Modified: trunk/dports/devel/libtool/Portfile
===================================================================
--- trunk/dports/devel/libtool/Portfile	2015-10-19 04:24:31 UTC (rev 141453)
+++ trunk/dports/devel/libtool/Portfile	2015-10-19 05:03:26 UTC (rev 141454)
@@ -5,7 +5,7 @@
 
 name                libtool
 version             2.4.6
-revision            1
+revision            2
 categories          devel sysutils
 platforms           darwin freebsd
 # Scripts are GPL-2+, libltdl is LGPL-2+, but all parts that tend to be
@@ -25,7 +25,7 @@
                     sha256  e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3
 
 # For consistency, always use the M4 detected by configure.
-patchfiles          hardcode-m4.patch
+patchfiles          hardcode-m4.patch asan.patch
 post-patch {
     # Stop build from trying to regenerate this after patching.
     touch ${worksrcpath}/doc/libtoolize.1

Added: trunk/dports/devel/libtool/files/asan.patch
===================================================================
--- trunk/dports/devel/libtool/files/asan.patch	                        (rev 0)
+++ trunk/dports/devel/libtool/files/asan.patch	2015-10-19 05:03:26 UTC (rev 141454)
@@ -0,0 +1,34 @@
+https://savannah.gnu.org/patch/index.php?8775
+
+diff -Naupr libtool-2.4.6.orig/build-aux/ltmain.in libtool-2.4.6/build-aux/ltmain.in
+--- build-aux/ltmain.in	2015-02-06 04:57:56.000000000 -0800
++++ build-aux/ltmain.in	2015-10-18 21:48:30.000000000 -0700
+@@ -5361,9 +5361,11 @@ func_mode_link ()
+       # --sysroot=*          for sysroot support
+       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+       # -stdlib=*            select c++ std lib with clang
++      # -fsanitize=*         Clang memory and address sanitizer
+       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+-      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
++      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
++      -fsanitize=*)
+         func_quote_for_eval "$arg"
+ 	arg=$func_quote_for_eval_result
+         func_append compile_command " $arg"
+diff -Naupr libtool-2.4.6.orig/build-aux/ltmain.sh libtool-2.4.6/build-aux/ltmain.sh
+--- build-aux/ltmain.sh	2015-02-15 08:15:12.000000000 -0800
++++ build-aux/ltmain.sh	2015-10-18 21:49:05.000000000 -0700
+@@ -7273,9 +7273,11 @@ func_mode_link ()
+       # --sysroot=*          for sysroot support
+       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+       # -stdlib=*            select c++ std lib with clang
++      # -fsanitize=*         Clang memory and address sanitizer
+       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+-      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
++      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
++      -fsanitize=*)
+         func_quote_for_eval "$arg"
+ 	arg=$func_quote_for_eval_result
+         func_append compile_command " $arg"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/00ca8ed5/attachment.html>


More information about the macports-changes mailing list