- 论坛徽章:
- 0
|
我用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'
...
...
... |
|