In a crazy effort to gather an ever growing set of up-to-date GNU tools and utilities built my myself I proceed little by little on each GNU software, getting its source code and attempting the build. At first I'm concerned in just successfully building the software. But I'll try to figure out how to reference the new artifacts in a sort of side-by-side installation that could co-exist with the standard Solaris packages without mixing stuffs.
The GNU
libsigsegv library is sometimes used on GNU buildings so I add it to my crazy list of GNU software to manually build. For now, it seems that later on I would have to adjust my GNU m4 macros in order to take into account this new libsigsegv version. Fortunately, later on when I build an updated version of GNU m4 I'll have the option (
--with-libsigsegv-prefix) to automatically do that.
The basic building strategy and general assumptions have been detailed on a previous post:
Staged Building, so I'll (hopefully) get more straight to the point:
$ pwd
/stage/build
$ ./gnu-build-preparation ../source/.../libsigegv-2.12.tar.gz
Processing /stage/source/.../libsigsegv-2.12.tar.gz
------------------------------------
App: libsigsegv
Ver: 2.12
------------------------------------
In the process, the following ZFS datasets will be created:
rpool/stage/build/libsigsegv
rpool/stage/build/libsigsegv/libsigsegv-2.12
rpool/stage/build/libsigsegv/libsigsegv-2.12-32
rpool/stage/build/libsigsegv/libsigsegv-2.12-64
rpool/stage/prototype/libsigsegv
rpool/stage/prototype/libsigsegv/libsigsegv-2.12
rpool/stage/prototype/libsigsegv/libsigsegv-2.12/32
rpool/stage/prototype/libsigsegv/libsigsegv-2.12/64
Enter "y" to proceed: y
Creating rpool/stage/build/libsigsegv...
Creating rpool/stage/build/libsigsegv/libsigsegv-2.12...
rpool/stage/build/libsigsegv
rpool/stage/build/libsigsegv/libsigsegv-2.12
rpool/stage/build/libsigsegv/libsigsegv-2.12@source
rpool/stage/build/libsigsegv/libsigsegv-2.12-32
rpool/stage/build/libsigsegv/libsigsegv-2.12-32@start
rpool/stage/build/libsigsegv/libsigsegv-2.12-64
rpool/stage/build/libsigsegv/libsigsegv-2.12-64@start
Creating rpool/stage/prototype/libsigsegv subtree.
rpool/stage/prototype/libsigsegv
rpool/stage/prototype/libsigsegv/2.12
rpool/stage/prototype/libsigsegv/2.12/32
rpool/stage/prototype/libsigsegv/2.12/64
Creating pre-configuration script.
$ cd libsigsegv/libsigsegv-2.12-64
$ source ../setenv 64
CONFIG_SHELL=
CC=/usr/bin/gcc CFLAGS=-m64 -march=core2 -std=gnu89
CXX=/usr/bin/g++ CXXFLAGS=-m64 -march=core2 -std=gnu++03
LD=/usr/bin/ld LDFLAGS=-m64 -march=core2
PATH=/usr/gnu/bin:/usr/bin:/usr/sbin
PKG_CONFIG_PATH=
Suggested build sequence:
Fine-tune/fix config.h.in, Makefile.in and others...
$ ./configure \
--build=x86_64-pc-solaris2.11 \
--prefix=/opt/... \
...
$ gmake -j4
For IPS package:
$ sudo gmake DESTDIR=/stage/prototype/libsigsegv/2.12/64 install
For immediate use:
$ sudo gmake install
$ zfs snapshot -r .../opt/...@libsigsegv-2.12