Adding libtool Support
来源:互联网 发布:mac如何下载视频 编辑:程序博客网 时间:2024/06/07 19:47
Adding libtool Support
Libtool handles the different ways of linking against libraries on different platform, especially shared libraries (if possible). Therefore it should be used, whenever an external library is used or whenever a project should build and install libraries. As this simple project so far does non of these, libtool is not necessary here. The next step will add gettext, so libtool might be usefull, as gettext has libraries to link against. But gettext allows the developer to compile the necessary functions directly into the project. So for gettext libtool is not a must. Lateron wxWindows libraries are used and then libtool support does make sence. As adding libtool is a small step often required, it is done here.The drawback should be mentioned as well: the size of the compressed source tarball increases by about 150kB, the number of checks 'configure' performs is much larger (which takes time) and the compilation itself takes more time.
Adding libtool support is quite easy: just run libtoolize.
# libtoolizeRemember to add `AC_PROG_LIBTOOL' to `configure.ac'.Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'You should update your `aclocal.m4' by running aclocal.
configure.ac
...AM_INIT_AUTOMAKEAC_PROG_RANLIBAC_LIBTOOL_DLOPENAC_PROG_LIBTOOL...
# ln -s /usr/local/share/libtool/libltdl/acinclude.m4 acinclude.m4
Rebuilding the Project
Afterwards, a new 'configure' can be created. If all environment variables were correctly set during the creation of the current Makefile's (they should be correctly set now, too!), 'make' does the job. It will call all necessary auto tools, and run configure. It will not recompile, as the sources are not changed. To force a recompile, 'make clean' should be run first.# gmakecd . && aclocal19... cd . && automake19 --gnucd . && autoconf259/bin/sh ./config.status --recheckrunning /bin/sh ./configure --no-create --no-recursionchecking for a BSD-compatible install... /usr/bin/install -c...config.status: executing depfiles commandscd . && autoheader259...
# cat config.h /* config.h. Generated by configure. *//* config.h.in. Generated from configure.ac by autoheader. *//* Define to 1 if you have the <dlfcn.h> header file. */#define HAVE_DLFCN_H 1/* Define to 1 if you have the <inttypes.h> header file. */#define HAVE_INTTYPES_H 1/* Define to 1 if you have the <memory.h> header file. */#define HAVE_MEMORY_H 1...
createFromCvs.freebsd
#!/bin/shlibtoolizeln -s /usr/local/share/libtool/libltdl/acinclude.m4 acinclude.m4${ACLOCAL}...
createFromCvs.gentoo
#!/bin/shlibtoolizeln -s /usr/share/libtool/libltdl/acinclude.m4 acinclude.m4aclocal...
Next, the internationalization of a project is discussed.
阅读全文
0 0
- Adding libtool Support
- Adding SSL-support to Magento
- Adding UIGestureRecognizer support in cocos2d
- Adding Tracing Support to the Application
- Adding Object Subscripting Support to Your Classes
- Adding Support for a new MAVLink Gimbal
- libtool
- libtool
- Libtool
- libtool
- libtool
- libtool
- libtool
- libtool
- Adding a JSF view Scope to Spring scope support
- [1003.1(2008)/Issue 7 0000411]: adding atomic FD_CLOEXEC support
- Adding timeout support for http request in Node.JS
- CMake Tutorial(7)——Adding Support for a Dashboard
- Docker 集群环境实现的新方式
- 爬虫技术(01)神箭手爬虫初学案例解读
- IFE-TASK10(任务十:Flexbox 布局练习)
- Tomcat下ajax请求路径总结
- SpringMVC出现no mapping found for http request的解决办法
- Adding libtool Support
- Codeforces 872C Maximum splitting【思维】
- “在工作中,与上级意见不一致”面试者如何巧妙回答?
- 水仙花数算法
- wpf 后台修改样式
- visio二次开发——事件编程
- libtool version mismatch error
- ArcEngine 地图图片输出 栅格不清晰
- Windows下使用SparkR进行数据分析