免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2057 | 回复: 2
打印 上一主题 下一主题

Automake和libtool生成wrapper脚本的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-08 15:37 |只看该作者 |倒序浏览
我用autotools建立工程,configure、make之后,没有编译和链接错误,但生成的目标文件g_snake并不是二进制文件,而是一个脚本文件,真正的二进制文件g_snake被放在了.lib下面,二者都可以正常运行。请问这是怎么回事?怎么让它直接生成二进制文件。了解libtool 的讲一下原理,谢谢啊!
下面是那个脚本文件的一小部分开头:
  
#! /bin/bash
  
# g_snake - temporary wrapper script for .libs/g_snake
# Generated by ltmain.sh - GNU libtool 1.5.23b (1.1220.2.437 2007/02/17 09:08:45)
#
# The g_snake program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.
  
# Sed substitution that helps us do robust quoting.  It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='/bin/sed -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
...
...
...

论坛徽章:
0
2 [报告]
发表于 2010-01-09 21:13 |只看该作者
虽然我不了解,但是我想在autoconf的配置文件中肯定能制定吧。

我之前用eclipse,它自动创建功能文件,也都是生成一个build文件夹,目的是让源代码和中间文件分离

论坛徽章:
0
3 [报告]
发表于 2010-01-10 19:34 |只看该作者

回复 #2 emmoblin 的帖子

我找了半天也没找到,看了GNU的automake tools的文档也没找到原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP