Buildworld broken with WITHOUT_DYNAMICROOT=yes in src.conf

Glen Barber gjb at FreeBSD.org
Mon Nov 25 04:48:58 UTC 2013


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)
@@ -42,6 +42,9 @@
 
 DPADD=	${LIBTERMCAP} ${LIBCRYPT}
 LDADD=	-ltermcap -lcrypt
+.if ${MK_ICONV} != "no" && ${MK_DYNAMICROOT} != "yes"
+LDADD+=    -lc_nonshared
+.endif
    
 LINKS=	${BINDIR}/csh ${BINDIR}/tcsh
      

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20131124/1d6c7e05/attachment.sig>


More information about the freebsd-current mailing list