1. 动态库
$(CC) -shared $(CURCFLAGS) $(CURLDFLAGS) -o libDot11pTr.so $(CUR_OBJS)
2. 静态库
$(AR) -cr libDot11pData.a $(CUR_OBJS)
3. 静态库生成动态库
$(CC) -shared -fPIC $(CURCFLAGS) $(CURLDFLAGS) -o libDot11p.so $(CUR_OBJS) -Wl,--whole-archive libDot11pTr.a libDot11pData.a libDot11pMgt.a -Wl,--no-whole-archive
4. 查看库中函数
mips-openwrt-linux-musl-nm libDot11p.so
阅读(3167) | 评论(0) | 转发(0) |