mipsel-linux-uclibc交叉编译 libbzip2
来源:互联网 发布:赵薇被处罚知乎 编辑:程序博客网 时间:2024/05/18 09:51
作者提供了一个编译so的脚本:
看起来只用CC,很简单的。
不过作者提供的Makefile很复杂,不懂这俩有啥区别。
# This Makefile builds a shared version of the library, # libbz2.so.1.0.6, with soname libbz2.so.1.0,# at least on x86-Linux (RedHat 7.2), # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). # Please see the README file for some important info # about building the library like this.# ------------------------------------------------------------------# This file is part of bzip2/libbzip2, a program and library for# lossless, block-sorting data compression.## bzip2/libbzip2 version 1.0.6 of 6 September 2010# Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>## Please read the WARNING, DISCLAIMER and PATENTS sections in the # README file.## This program is released under the terms of the license contained# in the file LICENSE.# ------------------------------------------------------------------SHELL=/bin/shCC=gccBIGFILES=-D_FILE_OFFSET_BITS=64CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)OBJS= blocksort.o \ huffman.o \ crctable.o \ randtable.o \ compress.o \ decompress.o \ bzlib.oall: $(OBJS)$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6rm -f libbz2.so.1.0ln -s libbz2.so.1.0.6 libbz2.so.1.0clean: rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-sharedblocksort.o: blocksort.c$(CC) $(CFLAGS) -c blocksort.chuffman.o: huffman.c$(CC) $(CFLAGS) -c huffman.ccrctable.o: crctable.c$(CC) $(CFLAGS) -c crctable.crandtable.o: randtable.c$(CC) $(CFLAGS) -c randtable.ccompress.o: compress.c$(CC) $(CFLAGS) -c compress.cdecompress.o: decompress.c$(CC) $(CFLAGS) -c decompress.cbzlib.o: bzlib.c$(CC) $(CFLAGS) -c bzlib.c
zhangbin@bogon:~/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6$
zhangbin@bogon:~/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6$zhangbin@bogon:~/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6$
zhangbin@bogon:~/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6$ source bzip2_build.sh
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c blocksort.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c huffman.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c crctable.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c randtable.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c compress.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c decompress.c
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -c bzlib.c
mipsel-linux-uclibc-gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
mipsel-linux-uclibc-gcc -fpic -fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -o bzip2-shared bzip2.c libbz2.so.1.0.6
/tmp/ccf3RPEE.o: In function `applySavedTimeInfoToOutputFile':
/home/lbteam/zhangbin/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6/bzip2.c:1059: warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
rm -f libbz2.so.1.0
ln -s libbz2.so.1.0.6 libbz2.so.1.0
zhangbin@bogon:~/bcm/unimedia/depvlc/libbzip2/code_bzip2-1.0.6$
只需要so文件就好了吧。
- mipsel-linux-uclibc交叉编译 libbzip2
- mipsel-linux-uclibc交叉编译libz
- mipsel-linux-uclibc交叉编译libogg
- mipsel-linux-uclibc交叉编译opus
- mipsel-linux-uclibc交叉编译vlc -1
- mipsel-linux-uclibc交叉编译vlc -2
- mipsel-uclibc交叉编译dvbspi
- mipsel-linux-uclibc编译liba52
- mipsel-linux-uclibc 编译ffmpeg
- mipsel-linux-uclibc编译vlc找不到live555的解决办法
- 制作mipsel-linux交叉编译工具
- 制作mipsel-linux交叉编译工具1
- 制作mipsel-linux交叉编译工具2
- 制作mipsel-linux交叉编译工具3
- mipsel-linux交叉编译SDL1.2.14
- mipsel-linux-gcc 交叉编译libxml2
- 交叉编译Pjsip for mipsel linux
- 制作mipsel-linux交叉编译工具
- 进程组和会话组
- Linux commands
- Ubuntu 12.10安装低版本gcc和g++编译器
- cocos2d-x 更换场景
- 大学英语六级听力——012(Tropical forests in the world)
- mipsel-linux-uclibc交叉编译 libbzip2
- MAC OS X 终端命令入门 (简单常用笔记)
- 产品上线缓存作梗 平板抓包妹子献策
- 覆盖数字
- <jsp:useBean>概要介绍
- 递归实现的字符全排列
- lua 基础教程电子书收藏
- JDK动态代理实现原理
- 黑马程序员---包装类