[sheepdog-users] About bundling libraries (at least one library isa-l)

Marcin Mirosław marcin at mejor.pl
Mon Nov 17 16:03:07 CET 2014


Hi!

Also bundled library doesn't use enviroment variables set by packager:
CC, CFLAGS, AS and strips library

make[2]: Entering directory
'/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/lib/isa-l'
mkdir -p bin
echo "  ---> Building erasure_code/ec_highlevel_func.c
/var/tmp/portage/net-fs/sheepdog-9999/image/"
gcc  -Wall  -O2 -D /var/tmp/portage/net-fs/sheepdog-9999/image/ -D
NDEBUG -Ierasure_code -Iinclude   -c -o bin/ec_highlevel_func.o
erasure_code/ec_highlevel_func.c
echo "  ---> Building erasure_code/ec_base.c
/var/tmp/portage/net-fs/sheepdog-9999/image/"
gcc  -Wall  -O2 -D /var/tmp/portage/net-fs/sheepdog-9999/image/ -D
NDEBUG -Ierasure_code -Iinclude   -c -o bin/ec_base.o erasure_code/ec_base.c
echo "  ---> Building erasure_code/gf_vect_mul_sse.asm
/var/tmp/portage/net-fs/sheepdog-9999/image/"
yasm -f elf64   -D /var/tmp/portage/net-fs/sheepdog-9999/image/ -D
NDEBUG -Ierasure_code -Iinclude -o bin/gf_vect_mul_sse.o
erasure_code/gf_vect_mul_sse.asm

while correct compiler and CFLAGS are like in invocation below:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include
-I../include  -O2 -pipe -march=corei7 -mtune=native
-frecord-gcc-switches         -fno-unwind-t
ables -fno-asynchronous-unwind-tables -fuse-linker-plugin -s
-fexpensive-optimizations -fgraphite-identity -floop-interchange
 -ftree-loop-linear -floop
-block -floop-strip-mine -fira-loop-pressure
-fpredictive-commoning -freorder-blocks-and-partition -ftracer
-ftree-vectorize    -O2 -pipe -march=corei7 -mtune=
native -frecord-gcc-switches         -fno-unwind-tables
-fno-asynchronous-unwind-tables -fuse-linker-plugin -s
-fexpensive-optimizations -fgraphite-identity -f
loop-interchange         -ftree-loop-linear -floop-block
-floop-strip-mine -fira-loop-pressure        -fpredictive-commoning
-freorder-blocks-and-partition -ftracer -
ftree-vectorize -DNDEBUG           -Wall -Wshadow -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wwrite-strings -Wbad-function-cast
-Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wcast-align
-D_GNU_SOURCE -D_LGPL_SOURCE -std=gnu9
9 -c event.c



Also problem with builing of isa-l would be not your problem:)
Marcin



More information about the sheepdog-users mailing list