Re: Buildworld broken with WITHOUT_DYNAMICROOT=yes in src.conf

From: Glen Barber <gjb_at_FreeBSD.org>
Date: Sun, 24 Nov 2013 23:48:54 -0500
On Sun, Nov 24, 2013 at 08:41:48PM -0800, Manfred Antar wrote:
> At 08:17 PM 11/24/2013, Glen Barber wrote:
> >On Sun, Nov 24, 2013 at 05:29:14PM -0800, Manfred Antar wrote:
> >> adding -lc_nonshared to LAAD enables me to build /bin and /sbin statically
> >> /bin/csh/Makefile was the only one I had to change all the rest of /bin and /sbin built fine
> >> 
> >
> >Hmm, I'm not sure if bin/csh/ should require -c_nonshared
> >unconditionally.
> >
> >I've done some testing with WITHOUT_DYNAMICROOT=1, WITHOUT_ICONV=1,
> >WITH_ICONV=1, WITH_DYNAMICROOT=1, and am getting different results with
> >regard to what iconv_*() are included...
> >
> >Glen
> >
> >
> 
> I  think it only needs it if you want a static csh.
> my src.conf :
> 
> #WITHOUT_DYNAMICROOT=yes 
> WITH_IDEA=yes
> # Don't die on warnings
> NO_WERROR=
> WERROR=
> WITH_GCC=yes
> WITH_GNUCXX=yes
> 
> can you some kind of conditional
> 
> if WITHOUT_DYNAMICROOT=yes then LADD+= -lc_nonshared 
> 

Yes, that is what I am doing, but also getting unexpected results.

Latest diff I tried is:

Index: Makefile
===================================================================
--- Makefile      (revision 258538)
+++ Makefile      (working copy)
_at__at_ -42,6 +42,9 _at__at_
 
 DPADD=	${LIBTERMCAP} ${LIBCRYPT}
 LDADD=	-ltermcap -lcrypt
+.if ${MK_ICONV} != "no" && ${MK_DYNAMICROOT} != "yes"
+LDADD+=    -lc_nonshared
+.endif
    
 LINKS=	${BINDIR}/csh ${BINDIR}/tcsh
      

Glen


Received on Mon Nov 25 2013 - 03:48:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:44 UTC