On Thu, Sep 15, 2016 at 1:58 PM, Martin Natano <[email protected]> wrote:
> This should do it. The 'fix' is ugly, but I couldn't find a cleaner way
> to pass the right STRIP value to libtool. Any better ideas? Ok?
...
> --- gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper      11 Sep 2016 07:42:02 
> -0000      1.9
> +++ gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper      15 Sep 2016 20:56:45 
> -0000
> @@ -80,6 +80,8 @@ do-config: .USE
>             mv -f Makefile.tmp Makefile
>         cd ${.OBJDIR} && \
>             ${MAKE} ${CONFIGURE_MODULES}
> +       sed -i 's,^STRIP=strip$$,STRIP=/usr/bin/strip,' \
> +           ${.OBJDIR}/binutils/libtool

Instead of hacking the generated libtool post-facto, maybe just
hardcode a usable value into what generates the script?


--- ltconfig    24 Apr 2011 20:14:40 -0000      1.1.1.1
+++ ltconfig    16 Sep 2016 03:44:50 -0000
@@ -2331,7 +2331,7 @@ LN_S=$LN_S
 NM=$NM

 # A symbol stripping program
-STRIP=$STRIP
+STRIP=/usr/bin/strip

 # Used to examine libraries when file_magic_cmd begins "file"
 MAGIC_CMD=$MAGIC_CMD

Reply via email to