libpngのクロスコンパイル
1.準備
・ここでの内容は、http://d.hatena.ne.jp/NeoCat/20070910こ
こを参考にさせて頂いた。
・クロスコンパイル環境は、zlibをコンパイルしたものをそのまま使用する。
・クロスコンパイル用gccのある場所にパスを通は通っているはずである。# echo $PATHで確認して
通っていないならば再度通しておく。
・/home/anabuki/work/kamikaze_7.09/staging_dir_mips/libにlibz.aをまたinclude/に
zlib.h zconf.hをコピーする。
・http://jaist.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8-config.tar.gzよ
りソースを
もらってきてこれを適当なディレクトリーで展開する。私は/root/work/nagios以下を使用した。
・thinkpad:~/work/nagios# tar zxvf libpng-1.2.8-config.tar.gz
2.クロスコンパイルの実行
・./configureの実行
thinkpad:~/work/nagios/libpng-1.2.8-config#
./configure --build=i686-linux --host=mips-linux --enable-shared
--prefix=/root/work/nagios/local/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-linux-strip... mips-linux-strip
checking for mips-linux-gcc... mips-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-linux-gcc accepts -g... yes
checking for mips-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of mips-linux-gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking for ld used by GCC...
/home/anabuki/work/kamikaze_7.09/staging_dir_mips/mips-linux-uclibc/bin/ld
checking if the linker
(/home/anabuki/work/kamikaze_7.09/staging_dir_mips/mips-linux-uclibc/bin/ld)
is GNU ld... yes
checking for
/home/anabuki/work/kamikaze_7.09/staging_dir_mips/mips-linux-uclibc/bin/ld
option to reload object files... -r
checking for BSD-compatible nm...
/home/anabuki/work/kamikaze_7.09/staging_dir_mips/bin/mips-linux-nm -B
checking for a sed that does not truncate output...
/home/anabuki/work/kamikaze_7.09/staging_dir_mips/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse
/home/anabuki/work/kamikaze_7.09/staging_dir_mips/bin/mips-linux-nm -B
output... ok
checking how to run the C preprocessor... mips-linux-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for mips-linux-ranlib... mips-linux-ranlib
checking for mips-linux-strip... (cached) mips-linux-strip
checking for objdir... .libs
checking for mips-linux-gcc option to produce PIC... -fPIC
checking if mips-linux-gcc PIC flag -fPIC works... yes
checking if mips-linux-gcc static flag -static works... yes
checking if mips-linux-gcc supports -c -o file.o... yes
checking if mips-linux-gcc supports -c -o file.lo... yes
checking if mips-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking
whether the linker
(/home/anabuki/work/kamikaze_7.09/staging_dir_mips/mips-linux-uclibc/bin/ld)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for X... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for working strtod... no
checking for pow... no
checking for pow in -lm... yes
checking for memset... yes
checking for pow... (cached) no
checking for strrchr... yes
checking for sqrt... no
checking for sqrt in -lm... yes
checking for zlibVersion in -lz... yes
checking pkgconfig directory... ${prefix}/lib/pkgconfig
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
|
・make CC=mips-linux-gccの実行 一応コンパイラーを指定してます。
thinkpad:~/work/nagios/libpng-1.2.8-config# make
CC=mips-linux-gcc
make all-am
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' に入ります
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT png.lo -MD -MP -MF
".deps/png.Tpo" \
-c -o png.lo `test -f 'png.c' || echo './'`png.c; \
then mv ".deps/png.Tpo" ".deps/png.Plo"; \
else rm -f ".deps/png.Tpo"; exit 1; \
fi
mkdir .libs
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -fPIC -DPIC -o .libs/png.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -o png.o >/dev/null 2>&1
mv -f .libs/png.lo png.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngset.lo -MD -MP -MF
".deps/pngset.Tpo" \
-c -o pngset.lo `test -f 'pngset.c' || echo './'`pngset.c; \
then mv ".deps/pngset.Tpo" ".deps/pngset.Plo"; \
else rm -f ".deps/pngset.Tpo"; exit 1; \
fi
rm -f .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -fPIC -DPIC -o .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -o pngset.o >/dev/null
2>&1
mv -f .libs/pngset.lo pngset.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngget.lo -MD -MP -MF
".deps/pngget.Tpo" \
-c -o pngget.lo `test -f 'pngget.c' || echo './'`pngget.c; \
then mv ".deps/pngget.Tpo" ".deps/pngget.Plo"; \
else rm -f ".deps/pngget.Tpo"; exit 1; \
fi
rm -f .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -fPIC -DPIC -o .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -o pngget.o >/dev/null
2>&1
mv -f .libs/pngget.lo pngget.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrutil.lo -MD -MP -MF
".deps/pngrutil.Tpo" \
-c -o pngrutil.lo `test -f 'pngrutil.c' || echo './'`pngrutil.c; \
then mv ".deps/pngrutil.Tpo" ".deps/pngrutil.Plo"; \
else rm -f ".deps/pngrutil.Tpo"; exit 1; \
fi
rm -f .libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -fPIC -DPIC -o
.libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -o pngrutil.o >/dev/null
2>&1
mv -f .libs/pngrutil.lo pngrutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngtrans.lo -MD -MP -MF
".deps/pngtrans.Tpo" \
-c -o pngtrans.lo `test -f 'pngtrans.c' || echo './'`pngtrans.c; \
then mv ".deps/pngtrans.Tpo" ".deps/pngtrans.Plo"; \
else rm -f ".deps/pngtrans.Tpo"; exit 1; \
fi
rm -f .libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -fPIC -DPIC -o
.libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -o pngtrans.o >/dev/null
2>&1
mv -f .libs/pngtrans.lo pngtrans.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwutil.lo -MD -MP -MF
".deps/pngwutil.Tpo" \
-c -o pngwutil.lo `test -f 'pngwutil.c' || echo './'`pngwutil.c; \
then mv ".deps/pngwutil.Tpo" ".deps/pngwutil.Plo"; \
else rm -f ".deps/pngwutil.Tpo"; exit 1; \
fi
rm -f .libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -fPIC -DPIC -o
.libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -o pngwutil.o >/dev/null
2>&1
mv -f .libs/pngwutil.lo pngwutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngread.lo -MD -MP -MF
".deps/pngread.Tpo" \
-c -o pngread.lo `test -f 'pngread.c' || echo './'`pngread.c; \
then mv ".deps/pngread.Tpo" ".deps/pngread.Plo"; \
else rm -f ".deps/pngread.Tpo"; exit 1; \
fi
rm -f .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -fPIC -DPIC -o .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -o pngread.o >/dev/null
2>&1
mv -f .libs/pngread.lo pngread.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrio.lo -MD -MP -MF
".deps/pngrio.Tpo" \
-c -o pngrio.lo `test -f 'pngrio.c' || echo './'`pngrio.c; \
then mv ".deps/pngrio.Tpo" ".deps/pngrio.Plo"; \
else rm -f ".deps/pngrio.Tpo"; exit 1; \
fi
rm -f .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -fPIC -DPIC -o .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -o pngrio.o >/dev/null
2>&1
mv -f .libs/pngrio.lo pngrio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwio.lo -MD -MP -MF
".deps/pngwio.Tpo" \
-c -o pngwio.lo `test -f 'pngwio.c' || echo './'`pngwio.c; \
then mv ".deps/pngwio.Tpo" ".deps/pngwio.Plo"; \
else rm -f ".deps/pngwio.Tpo"; exit 1; \
fi
rm -f .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -fPIC -DPIC -o .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -o pngwio.o >/dev/null
2>&1
mv -f .libs/pngwio.lo pngwio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwrite.lo -MD -MP -MF
".deps/pngwrite.Tpo" \
-c -o pngwrite.lo `test -f 'pngwrite.c' || echo './'`pngwrite.c; \
then mv ".deps/pngwrite.Tpo" ".deps/pngwrite.Plo"; \
else rm -f ".deps/pngwrite.Tpo"; exit 1; \
fi
rm -f .libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -fPIC -DPIC -o
.libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -o pngwrite.o >/dev/null
2>&1
mv -f .libs/pngwrite.lo pngwrite.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrtran.lo -MD -MP -MF
".deps/pngrtran.Tpo" \
-c -o pngrtran.lo `test -f 'pngrtran.c' || echo './'`pngrtran.c; \
then mv ".deps/pngrtran.Tpo" ".deps/pngrtran.Plo"; \
else rm -f ".deps/pngrtran.Tpo"; exit 1; \
fi
rm -f .libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -fPIC -DPIC -o
.libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -o pngrtran.o >/dev/null
2>&1
mv -f .libs/pngrtran.lo pngrtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwtran.lo -MD -MP -MF
".deps/pngwtran.Tpo" \
-c -o pngwtran.lo `test -f 'pngwtran.c' || echo './'`pngwtran.c; \
then mv ".deps/pngwtran.Tpo" ".deps/pngwtran.Plo"; \
else rm -f ".deps/pngwtran.Tpo"; exit 1; \
fi
rm -f .libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -fPIC -DPIC -o
.libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -o pngwtran.o >/dev/null
2>&1
mv -f .libs/pngwtran.lo pngwtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngmem.lo -MD -MP -MF
".deps/pngmem.Tpo" \
-c -o pngmem.lo `test -f 'pngmem.c' || echo './'`pngmem.c; \
then mv ".deps/pngmem.Tpo" ".deps/pngmem.Plo"; \
else rm -f ".deps/pngmem.Tpo"; exit 1; \
fi
rm -f .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -fPIC -DPIC -o .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -o pngmem.o >/dev/null
2>&1
mv -f .libs/pngmem.lo pngmem.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngerror.lo -MD -MP -MF
".deps/pngerror.Tpo" \
-c -o pngerror.lo `test -f 'pngerror.c' || echo './'`pngerror.c; \
then mv ".deps/pngerror.Tpo" ".deps/pngerror.Plo"; \
else rm -f ".deps/pngerror.Tpo"; exit 1; \
fi
rm -f .libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -fPIC -DPIC -o
.libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -o pngerror.o >/dev/null
2>&1
mv -f .libs/pngerror.lo pngerror.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngpread.lo -MD -MP -MF
".deps/pngpread.Tpo" \
-c -o pngpread.lo `test -f 'pngpread.c' || echo './'`pngpread.c; \
then mv ".deps/pngpread.Tpo" ".deps/pngpread.Plo"; \
else rm -f ".deps/pngpread.Tpo"; exit 1; \
fi
rm -f .libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -fPIC -DPIC -o
.libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -o pngpread.o >/dev/null
2>&1
mv -f .libs/pngpread.lo pngpread.lo
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng12.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 0:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng12.la .libs/libpng12.* .libs/libpng12.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.0.0
(cd .libs && rm -f libpng12.so.0 && ln
-s libpng12.so.0.0.0 libpng12.so.0)
(cd .libs && rm -f libpng12.so && ln -s
libpng12.so.0.0.0 libpng12.so)
ar
cru .libs/libpng12.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o
pngwtran.o pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng12.a
creating libpng12.la
(cd .libs && rm -f libpng12.la && ln -s
../libpng12.la libpng12.la)
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 3:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng.la .libs/libpng.* .libs/libpng.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng.so.3 -o .libs/libpng.so.3.0.0
(cd .libs && rm -f libpng.so.3 && ln -s
libpng.so.3.0.0 libpng.so.3)
(cd .libs && rm -f libpng.so && ln -s
libpng.so.3.0.0 libpng.so)
ar
cru .libs/libpng.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o
pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o
pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng.a
creating libpng.la
(cd .libs && rm -f libpng.la && ln -s
../libpng.la libpng.la)
( cat ./scripts/libpng-config-head.in; \
echo prefix=\"/root/work/nagios/local/\"; \
echo I_opts=\"-I/root/work/nagios/local//include\"; \
echo L_opts=\"-L/root/work/nagios/local//lib\"; \
echo R_opts=\"-Wl,-rpath,/root/work/nagios/local//lib\"; \
echo libs=\"-lpng12 -lz -lm\"; \
cat ./scripts/libpng-config-body.in ) > libpng-config
cp libpng-config libpng12-config
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' から出ます
thinkpad:~/work/nagios/libpng-1.2.8-config#
thinkpad:~/work/nagios/libpng-1.2.8-config# make CC=mips-linux-gcc
make all-am
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' に入ります
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT png.lo -MD -MP -MF
".deps/png.Tpo" \
-c -o png.lo `test -f 'png.c' || echo './'`png.c; \
then mv ".deps/png.Tpo" ".deps/png.Plo"; \
else rm -f ".deps/png.Tpo"; exit 1; \
fi
mkdir .libs
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -fPIC -DPIC -o .libs/png.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -o png.o >/dev/null 2>&1
mv -f .libs/png.lo png.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngset.lo -MD -MP -MF
".deps/pngset.Tpo" \
-c -o pngset.lo `test -f 'pngset.c' || echo './'`pngset.c; \
then mv ".deps/pngset.Tpo" ".deps/pngset.Plo"; \
else rm -f ".deps/pngset.Tpo"; exit 1; \
fi
rm -f .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -fPIC -DPIC -o .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -o pngset.o >/dev/null
2>&1
mv -f .libs/pngset.lo pngset.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngget.lo -MD -MP -MF
".deps/pngget.Tpo" \
-c -o pngget.lo `test -f 'pngget.c' || echo './'`pngget.c; \
then mv ".deps/pngget.Tpo" ".deps/pngget.Plo"; \
else rm -f ".deps/pngget.Tpo"; exit 1; \
fi
rm -f .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -fPIC -DPIC -o .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -o pngget.o >/dev/null
2>&1
mv -f .libs/pngget.lo pngget.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrutil.lo -MD -MP -MF
".deps/pngrutil.Tpo" \
-c -o pngrutil.lo `test -f 'pngrutil.c' || echo './'`pngrutil.c; \
then mv ".deps/pngrutil.Tpo" ".deps/pngrutil.Plo"; \
else rm -f ".deps/pngrutil.Tpo"; exit 1; \
fi
rm -f .libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -fPIC -DPIC -o
.libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -o pngrutil.o >/dev/null
2>&1
mv -f .libs/pngrutil.lo pngrutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngtrans.lo -MD -MP -MF
".deps/pngtrans.Tpo" \
-c -o pngtrans.lo `test -f 'pngtrans.c' || echo './'`pngtrans.c; \
then mv ".deps/pngtrans.Tpo" ".deps/pngtrans.Plo"; \
else rm -f ".deps/pngtrans.Tpo"; exit 1; \
fi
rm -f .libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -fPIC -DPIC -o
.libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -o pngtrans.o >/dev/null
2>&1
mv -f .libs/pngtrans.lo pngtrans.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwutil.lo -MD -MP -MF
".deps/pngwutil.Tpo" \
-c -o pngwutil.lo `test -f 'pngwutil.c' || echo './'`pngwutil.c; \
then mv ".deps/pngwutil.Tpo" ".deps/pngwutil.Plo"; \
else rm -f ".deps/pngwutil.Tpo"; exit 1; \
fi
rm -f .libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -fPIC -DPIC -o
.libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -o pngwutil.o >/dev/null
2>&1
mv -f .libs/pngwutil.lo pngwutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngread.lo -MD -MP -MF
".deps/pngread.Tpo" \
-c -o pngread.lo `test -f 'pngread.c' || echo './'`pngread.c; \
then mv ".deps/pngread.Tpo" ".deps/pngread.Plo"; \
else rm -f ".deps/pngread.Tpo"; exit 1; \
fi
rm -f .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -fPIC -DPIC -o .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -o pngread.o >/dev/null
2>&1
mv -f .libs/pngread.lo pngread.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrio.lo -MD -MP -MF
".deps/pngrio.Tpo" \
-c -o pngrio.lo `test -f 'pngrio.c' || echo './'`pngrio.c; \
then mv ".deps/pngrio.Tpo" ".deps/pngrio.Plo"; \
else rm -f ".deps/pngrio.Tpo"; exit 1; \
fi
rm -f .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -fPIC -DPIC -o .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -o pngrio.o >/dev/null
2>&1
mv -f .libs/pngrio.lo pngrio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwio.lo -MD -MP -MF
".deps/pngwio.Tpo" \
-c -o pngwio.lo `test -f 'pngwio.c' || echo './'`pngwio.c; \
then mv ".deps/pngwio.Tpo" ".deps/pngwio.Plo"; \
else rm -f ".deps/pngwio.Tpo"; exit 1; \
fi
rm -f .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -fPIC -DPIC -o .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -o pngwio.o >/dev/null
2>&1
mv -f .libs/pngwio.lo pngwio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwrite.lo -MD -MP -MF
".deps/pngwrite.Tpo" \
-c -o pngwrite.lo `test -f 'pngwrite.c' || echo './'`pngwrite.c; \
then mv ".deps/pngwrite.Tpo" ".deps/pngwrite.Plo"; \
else rm -f ".deps/pngwrite.Tpo"; exit 1; \
fi
rm -f .libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -fPIC -DPIC -o
.libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -o pngwrite.o >/dev/null
2>&1
mv -f .libs/pngwrite.lo pngwrite.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrtran.lo -MD -MP -MF
".deps/pngrtran.Tpo" \
-c -o pngrtran.lo `test -f 'pngrtran.c' || echo './'`pngrtran.c; \
then mv ".deps/pngrtran.Tpo" ".deps/pngrtran.Plo"; \
else rm -f ".deps/pngrtran.Tpo"; exit 1; \
fi
rm -f .libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -fPIC -DPIC -o
.libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -o pngrtran.o >/dev/null
2>&1
mv -f .libs/pngrtran.lo pngrtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwtran.lo -MD -MP -MF
".deps/pngwtran.Tpo" \
-c -o pngwtran.lo `test -f 'pngwtran.c' || echo './'`pngwtran.c; \
then mv ".deps/pngwtran.Tpo" ".deps/pngwtran.Plo"; \
else rm -f ".deps/pngwtran.Tpo"; exit 1; \
fi
rm -f .libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -fPIC -DPIC -o
.libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -o pngwtran.o >/dev/null
2>&1
mv -f .libs/pngwtran.lo pngwtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngmem.lo -MD -MP -MF
".deps/pngmem.Tpo" \
-c -o pngmem.lo `test -f 'pngmem.c' || echo './'`pngmem.c; \
then mv ".deps/pngmem.Tpo" ".deps/pngmem.Plo"; \
else rm -f ".deps/pngmem.Tpo"; exit 1; \
fi
rm -f .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -fPIC -DPIC -o .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -o pngmem.o >/dev/null
2>&1
mv -f .libs/pngmem.lo pngmem.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngerror.lo -MD -MP -MF
".deps/pngerror.Tpo" \
-c -o pngerror.lo `test -f 'pngerror.c' || echo './'`pngerror.c; \
then mv ".deps/pngerror.Tpo" ".deps/pngerror.Plo"; \
else rm -f ".deps/pngerror.Tpo"; exit 1; \
fi
rm -f .libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -fPIC -DPIC -o
.libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -o pngerror.o >/dev/null
2>&1
mv -f .libs/pngerror.lo pngerror.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngpread.lo -MD -MP -MF
".deps/pngpread.Tpo" \
-c -o pngpread.lo `test -f 'pngpread.c' || echo './'`pngpread.c; \
then mv ".deps/pngpread.Tpo" ".deps/pngpread.Plo"; \
else rm -f ".deps/pngpread.Tpo"; exit 1; \
fi
rm -f .libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -fPIC -DPIC -o
.libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -o pngpread.o >/dev/null
2>&1
mv -f .libs/pngpread.lo pngpread.lo
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng12.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 0:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng12.la .libs/libpng12.* .libs/libpng12.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.0.0
(cd .libs && rm -f libpng12.so.0 && ln
-s libpng12.so.0.0.0 libpng12.so.0)
(cd .libs && rm -f libpng12.so && ln -s
libpng12.so.0.0.0 libpng12.so)
ar
cru .libs/libpng12.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o
pngwtran.o pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng12.a
creating libpng12.la
(cd .libs && rm -f libpng12.la && ln -s
../libpng12.la libpng12.la)
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 3:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng.la .libs/libpng.* .libs/libpng.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng.so.3 -o .libs/libpng.so.3.0.0
(cd .libs && rm -f libpng.so.3 && ln -s
libpng.so.3.0.0 libpng.so.3)
(cd .libs && rm -f libpng.so && ln -s
libpng.so.3.0.0 libpng.so)
ar
cru .libs/libpng.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o
pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o
pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng.a
creating libpng.la
(cd .libs && rm -f libpng.la && ln -s
../libpng.la libpng.la)
( cat ./scripts/libpng-config-head.in; \
echo prefix=\"/root/work/nagios/local/\"; \
echo I_opts=\"-I/root/work/nagios/local//include\"; \
echo L_opts=\"-L/root/work/nagios/local//lib\"; \
echo R_opts=\"-Wl,-rpath,/root/work/nagios/local//lib\"; \
echo libs=\"-lpng12 -lz -lm\"; \
cat ./scripts/libpng-config-body.in ) > libpng-config
cp libpng-config libpng12-config
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' から出ます
|
・make installの実行
thinkpad:~/work/nagios/libpng-1.2.8-config# make
install
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT png.lo -MD -MP
-MF
".deps/png.Tpo" \
-c -o png.lo `test -f 'png.c' || echo './'`png.c; \
then mv ".deps/png.Tpo" ".deps/png.Plo"; \
else rm -f ".deps/png.Tpo"; exit 1; \
fi
rm -f .libs/png.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -fPIC -DPIC -o .libs/png.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT png.lo -MD -MP -MF .deps/png.Tpo
-c png.c -o png.o >/dev/null 2>&1
mv -f .libs/png.lo png.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngset.lo -MD
-MP -MF
".deps/pngset.Tpo" \
-c -o pngset.lo `test -f 'pngset.c' || echo './'`pngset.c; \
then mv ".deps/pngset.Tpo" ".deps/pngset.Plo"; \
else rm -f ".deps/pngset.Tpo"; exit 1; \
fi
rm -f .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -fPIC -DPIC -o .libs/pngset.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngset.lo -MD -MP -MF
.deps/pngset.Tpo -c pngset.c -o pngset.o >/dev/null
2>&1
mv -f .libs/pngset.lo pngset.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngget.lo -MD
-MP -MF
".deps/pngget.Tpo" \
-c -o pngget.lo `test -f 'pngget.c' || echo './'`pngget.c; \
then mv ".deps/pngget.Tpo" ".deps/pngget.Plo"; \
else rm -f ".deps/pngget.Tpo"; exit 1; \
fi
rm -f .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -fPIC -DPIC -o .libs/pngget.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngget.lo -MD -MP -MF
.deps/pngget.Tpo -c pngget.c -o pngget.o >/dev/null
2>&1
mv -f .libs/pngget.lo pngget.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrutil.lo -MD
-MP -MF
".deps/pngrutil.Tpo" \
-c -o pngrutil.lo `test -f 'pngrutil.c' || echo './'`pngrutil.c; \
then mv ".deps/pngrutil.Tpo" ".deps/pngrutil.Plo"; \
else rm -f ".deps/pngrutil.Tpo"; exit 1; \
fi
rm -f .libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -fPIC -DPIC -o
.libs/pngrutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrutil.lo -MD -MP -MF
.deps/pngrutil.Tpo -c pngrutil.c -o pngrutil.o >/dev/null
2>&1
mv -f .libs/pngrutil.lo pngrutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngtrans.lo -MD
-MP -MF
".deps/pngtrans.Tpo" \
-c -o pngtrans.lo `test -f 'pngtrans.c' || echo './'`pngtrans.c; \
then mv ".deps/pngtrans.Tpo" ".deps/pngtrans.Plo"; \
else rm -f ".deps/pngtrans.Tpo"; exit 1; \
fi
rm -f .libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -fPIC -DPIC -o
.libs/pngtrans.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngtrans.lo -MD -MP -MF
.deps/pngtrans.Tpo -c pngtrans.c -o pngtrans.o >/dev/null
2>&1
mv -f .libs/pngtrans.lo pngtrans.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwutil.lo -MD
-MP -MF
".deps/pngwutil.Tpo" \
-c -o pngwutil.lo `test -f 'pngwutil.c' || echo './'`pngwutil.c; \
then mv ".deps/pngwutil.Tpo" ".deps/pngwutil.Plo"; \
else rm -f ".deps/pngwutil.Tpo"; exit 1; \
fi
rm -f .libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -fPIC -DPIC -o
.libs/pngwutil.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwutil.lo -MD -MP -MF
.deps/pngwutil.Tpo -c pngwutil.c -o pngwutil.o >/dev/null
2>&1
mv -f .libs/pngwutil.lo pngwutil.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngread.lo -MD
-MP -MF
".deps/pngread.Tpo" \
-c -o pngread.lo `test -f 'pngread.c' || echo './'`pngread.c; \
then mv ".deps/pngread.Tpo" ".deps/pngread.Plo"; \
else rm -f ".deps/pngread.Tpo"; exit 1; \
fi
rm -f .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -fPIC -DPIC -o .libs/pngread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngread.lo -MD -MP -MF
.deps/pngread.Tpo -c pngread.c -o pngread.o >/dev/null
2>&1
mv -f .libs/pngread.lo pngread.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrio.lo -MD
-MP -MF
".deps/pngrio.Tpo" \
-c -o pngrio.lo `test -f 'pngrio.c' || echo './'`pngrio.c; \
then mv ".deps/pngrio.Tpo" ".deps/pngrio.Plo"; \
else rm -f ".deps/pngrio.Tpo"; exit 1; \
fi
rm -f .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -fPIC -DPIC -o .libs/pngrio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrio.lo -MD -MP -MF
.deps/pngrio.Tpo -c pngrio.c -o pngrio.o >/dev/null
2>&1
mv -f .libs/pngrio.lo pngrio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwio.lo -MD
-MP -MF
".deps/pngwio.Tpo" \
-c -o pngwio.lo `test -f 'pngwio.c' || echo './'`pngwio.c; \
then mv ".deps/pngwio.Tpo" ".deps/pngwio.Plo"; \
else rm -f ".deps/pngwio.Tpo"; exit 1; \
fi
rm -f .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -fPIC -DPIC -o .libs/pngwio.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwio.lo -MD -MP -MF
.deps/pngwio.Tpo -c pngwio.c -o pngwio.o >/dev/null
2>&1
mv -f .libs/pngwio.lo pngwio.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwrite.lo -MD
-MP -MF
".deps/pngwrite.Tpo" \
-c -o pngwrite.lo `test -f 'pngwrite.c' || echo './'`pngwrite.c; \
then mv ".deps/pngwrite.Tpo" ".deps/pngwrite.Plo"; \
else rm -f ".deps/pngwrite.Tpo"; exit 1; \
fi
rm -f .libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -fPIC -DPIC -o
.libs/pngwrite.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwrite.lo -MD -MP -MF
.deps/pngwrite.Tpo -c pngwrite.c -o pngwrite.o >/dev/null
2>&1
mv -f .libs/pngwrite.lo pngwrite.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngrtran.lo -MD
-MP -MF
".deps/pngrtran.Tpo" \
-c -o pngrtran.lo `test -f 'pngrtran.c' || echo './'`pngrtran.c; \
then mv ".deps/pngrtran.Tpo" ".deps/pngrtran.Plo"; \
else rm -f ".deps/pngrtran.Tpo"; exit 1; \
fi
rm -f .libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -fPIC -DPIC -o
.libs/pngrtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngrtran.lo -MD -MP -MF
.deps/pngrtran.Tpo -c pngrtran.c -o pngrtran.o >/dev/null
2>&1
mv -f .libs/pngrtran.lo pngrtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngwtran.lo -MD
-MP -MF
".deps/pngwtran.Tpo" \
-c -o pngwtran.lo `test -f 'pngwtran.c' || echo './'`pngwtran.c; \
then mv ".deps/pngwtran.Tpo" ".deps/pngwtran.Plo"; \
else rm -f ".deps/pngwtran.Tpo"; exit 1; \
fi
rm -f .libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -fPIC -DPIC -o
.libs/pngwtran.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngwtran.lo -MD -MP -MF
.deps/pngwtran.Tpo -c pngwtran.c -o pngwtran.o >/dev/null
2>&1
mv -f .libs/pngwtran.lo pngwtran.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngmem.lo -MD
-MP -MF
".deps/pngmem.Tpo" \
-c -o pngmem.lo `test -f 'pngmem.c' || echo './'`pngmem.c; \
then mv ".deps/pngmem.Tpo" ".deps/pngmem.Plo"; \
else rm -f ".deps/pngmem.Tpo"; exit 1; \
fi
rm -f .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -fPIC -DPIC -o .libs/pngmem.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngmem.lo -MD -MP -MF
.deps/pngmem.Tpo -c pngmem.c -o pngmem.o >/dev/null
2>&1
mv -f .libs/pngmem.lo pngmem.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngerror.lo -MD
-MP -MF
".deps/pngerror.Tpo" \
-c -o pngerror.lo `test -f 'pngerror.c' || echo './'`pngerror.c; \
then mv ".deps/pngerror.Tpo" ".deps/pngerror.Plo"; \
else rm -f ".deps/pngerror.Tpo"; exit 1; \
fi
rm -f .libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -fPIC -DPIC -o
.libs/pngerror.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngerror.lo -MD -MP -MF
.deps/pngerror.Tpo -c pngerror.c -o pngerror.o >/dev/null
2>&1
mv -f .libs/pngerror.lo pngerror.lo
if
/bin/sh ./libtool --mode=compile mips-linux-gcc -DHAVE_CONFIG_H -I. -I.
-I. -g -O2 -MT pngpread.lo -MD
-MP -MF
".deps/pngpread.Tpo" \
-c -o pngpread.lo `test -f 'pngpread.c' || echo './'`pngpread.c; \
then mv ".deps/pngpread.Tpo" ".deps/pngpread.Plo"; \
else rm -f ".deps/pngpread.Tpo"; exit 1; \
fi
rm -f .libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -fPIC -DPIC -o
.libs/pngpread.lo
mips-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT pngpread.lo -MD -MP -MF
.deps/pngpread.Tpo -c pngpread.c -o pngpread.o >/dev/null
2>&1
mv -f .libs/pngpread.lo pngpread.lo
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng12.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 0:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng12.la .libs/libpng12.* .libs/libpng12.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.0.0
(cd .libs && rm -f libpng12.so.0 && ln
-s libpng12.so.0.0.0 libpng12.so.0)
(cd .libs && rm -f libpng12.so && ln -s
libpng12.so.0.0.0 libpng12.so)
ar
cru .libs/libpng12.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o
pngwtran.o pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng12.a
creating libpng12.la
(cd .libs && rm -f libpng12.la && ln -s
../libpng12.la libpng12.la)
/bin/sh
./libtool --mode=link mips-linux-gcc -g
-O2 -o
libpng.la -rpath /root/work/nagios/local//lib -export-dynamic
-version-info 3:0:0 png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz -lm
rm -fr .libs/libpng.la .libs/libpng.* .libs/libpng.*
mips-linux-gcc
-shared png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo
pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo
pngwtran.lo pngmem.lo pngerror.lo pngpread.lo -lz
-lm
-Wl,-soname -Wl,libpng.so.3 -o .libs/libpng.so.3.0.0
(cd .libs && rm -f libpng.so.3 && ln -s
libpng.so.3.0.0 libpng.so.3)
(cd .libs && rm -f libpng.so && ln -s
libpng.so.3.0.0 libpng.so)
ar
cru .libs/libpng.a png.o pngset.o pngget.o pngrutil.o
pngtrans.o
pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o
pngmem.o pngerror.o pngpread.o
mips-linux-ranlib .libs/libpng.a
creating libpng.la
(cd .libs && rm -f libpng.la && ln -s
../libpng.la libpng.la)
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' に入ります
/bin/sh ./mkinstalldirs /root/work/nagios/local//bin
/usr/bin/install -c libpng-config
/root/work/nagios/local//bin/libpng-config
/usr/bin/install -c libpng12-config
/root/work/nagios/local//bin/libpng12-config
/bin/sh ./mkinstalldirs /root/work/nagios/local//lib
/bin/sh ./libtool --mode=install /usr/bin/install
-c libpng12.la /root/work/nagios/local//lib/libpng12.la
/usr/bin/install -c .libs/libpng12.so.0.0.0
/root/work/nagios/local//lib/libpng12.so.0.0.0
(cd /root/work/nagios/local//lib && rm -f libpng12.so.0
&& ln -s libpng12.so.0.0.0 libpng12.so.0)
(cd /root/work/nagios/local//lib && rm -f libpng12.so
&& ln -s libpng12.so.0.0.0 libpng12.so)
/usr/bin/install -c .libs/libpng12.lai
/root/work/nagios/local//lib/libpng12.la
/usr/bin/install -c .libs/libpng12.a
/root/work/nagios/local//lib/libpng12.a
mips-linux-ranlib /root/work/nagios/local//lib/libpng12.a
chmod 644 /root/work/nagios/local//lib/libpng12.a
PATH="$PATH:/sbin" ldconfig -n /root/work/nagios/local//lib
----------------------------------------------------------------------
Libraries have been installed in:
/root/work/nagios/local//lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment
variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment
variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to
`/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./libtool --mode=install /usr/bin/install
-c libpng.la /root/work/nagios/local//lib/libpng.la
/usr/bin/install -c .libs/libpng.so.3.0.0
/root/work/nagios/local//lib/libpng.so.3.0.0
(cd /root/work/nagios/local//lib && rm -f libpng.so.3
&& ln -s libpng.so.3.0.0 libpng.so.3)
(cd /root/work/nagios/local//lib && rm -f libpng.so
&& ln -s libpng.so.3.0.0 libpng.so)
/usr/bin/install -c .libs/libpng.lai
/root/work/nagios/local//lib/libpng.la
/usr/bin/install -c .libs/libpng.a /root/work/nagios/local//lib/libpng.a
mips-linux-ranlib /root/work/nagios/local//lib/libpng.a
chmod 644 /root/work/nagios/local//lib/libpng.a
PATH="$PATH:/sbin" ldconfig -n /root/work/nagios/local//lib
----------------------------------------------------------------------
Libraries have been installed in:
/root/work/nagios/local//lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment
variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment
variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to
`/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -d /root/work/nagios/local//lib/pkgconfig
/usr/bin/install -c -m 644 libpng.pc
/root/work/nagios/local//lib/pkgconfig
/usr/bin/install -c -m 644 libpng12.pc
/root/work/nagios/local//lib/pkgconfig
/bin/sh ./mkinstalldirs /root/work/nagios/local//include
/usr/bin/install -c -m 644 png.h
/root/work/nagios/local//include/png.h
/usr/bin/install -c -m 644 pngconf.h
/root/work/nagios/local//include/pngconf.h
/bin/sh ./mkinstalldirs /root/work/nagios/local//man/man3
/usr/bin/install -c -m 644 ./libpng.3
/root/work/nagios/local//man/man3/libpng.3
/usr/bin/install -c -m 644 ./libpngpf.3
/root/work/nagios/local//man/man3/libpngpf.3
/bin/sh ./mkinstalldirs /root/work/nagios/local//man/man5
/usr/bin/install -c -m 644 ./png.5
/root/work/nagios/local//man/man5/png.5
/bin/sh ./mkinstalldirs /root/work/nagios/local//include/libpng
/usr/bin/install -c -m 644 png.h
/root/work/nagios/local//include/libpng/png.h
/usr/bin/install -c -m 644 pngconf.h
/root/work/nagios/local//include/libpng/pngconf.h
make[1]: ディレクトリ `/root/work/nagios/libpng-1.2.8-config' から出ます |
以上で完了である。所定の/root/work/nagios/local/以下にインストールされていることを確認出来れ
ば完了である。
|