[OmniOS-discuss] Samba4 recipe
John D Groenveld
jdg117 at elvis.arl.psu.edu
Sun Nov 20 14:32:47 UTC 2016
In message <201605070144.u471ijko003268 at elvis.arl.psu.edu>, John D Groenveld wr
ites:
>Just some notes for building Samba4 on r151018.
>
>John
>groenveld at acm.org
>
># pkg install developer/gcc51 developer/pkg-config \
>developer/parser/bison developer/build/gnu-make \
>developer/object-file system/library/math system/header
>
>
><URL:https://ftp.gnu.org/gnu/nettle/>
>Munge config.make link to add -shared
>
>$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/usr/sfw/bin \
>CC=gcc CFLAGS="-m64 -O3" LDFLAGS=-m64 \
>./configure --prefix=/opt/nettle --disable-static --enable-shared \
>--disable-assembler --enable-mini-gmp
$ gzip -dc nettle-3.3.tar.gz | tar xf -
$ cd nettle-3.3
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/usr/sfw/bin \
CC=gcc CFLAGS="-m64 -O3" LDFLAGS=-m64 \
./configure --prefix=/opt/nettle --disable-static --enable-shared \
--disable-assembler --enable-mini-gmp
Edit config.make and add -shared to these lines:
LIBNETTLE_LINK = $(CC) $(CFLAGS) $(LDFLAGS) -G -shared -h $(LIBNETTLE_SONAME)
LIBHOGWEED_LINK = $(CC) $(CFLAGS) $(LDFLAGS) -G -shared -h $(LIBHOGWEED_SONAME)
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/usr/sfw/bin gmake
John
groenveld at acm.org
More information about the OmniOS-discuss
mailing list