English 中文(简体)
交叉汇编选项“前身”的确切目的
原标题:what is the exact purpose of the cross compile option "--prefix"

它可以如google firstconsult_help。 友好问题,但我确实和现在都得到了 answer忙的回答。

设想如下: 我在<代码>i686下硬拷贝,在<代码>/tftproom/rfs下有一个相互兼容的根基系统。 我现在将NFS与我的ARM-Platform连接起来。 我现在要汇编<代码>libxml,sqlitephpARM-RFS,以扩大已安装的<代码>t。 我的理解是,-prefix 界定了<代码>/的不同地点,因此,在我看来,我的组合应当如下:

//libxml

./configure --build=i686-linux --host=arm-926ejs-linux-gnueabi --prefix=/tftpboot/rfs
make
make install


//sqlite
./configure --build=i686-linux --host=arm-926ejs-linux-gnueabi --prefix=/tftpboot/rfs   CFLAGS="-lpthread -lrt -Os -ldl" CPPFLAGS="-DSQLITe_THREADSAFE=1 -DSQLITE_TEMP_STORAGE=3"
make
make install

//php
./configure --build=i686-linux --host=arm-926ejs-linux-gnueabi --target=arm-926ejs-linux-gnueabi --prefix=/tftpboot/rfs
    --with-thttpd=/usr/local/sbin --without-pear --with-pdo-sqlite=/usr/local --disable-all --enable-pdo 
    --with-sqlite3=/usr/local --with-config-file-path=/data --enable-libxml --with-libxml-dir=/usr/local
make
make install

这是因为:

  • I want to install in the normal rootfs hierarchy but at a rootpoint in /tftpboot/rfs.
  • thttpd is already installed in /tftpboot/rfs. so I want to link it there
  • ???

因此,我必须承认,我绝对没有任何想法:我必须绝对地行事,我必须走相对的道路。 或者,我是否把这一切完全错了?

最佳回答

http://www.un.org/Depts/DGACM/index_french.htm 说明安装方案的地点,以及安装方案在管理方案时应当查阅其档案。

如果某一具体项目/方案在运行时间(无)时不使用预设装置,则只是安装地点,你可以忽视以下因素。 页: 1 说明所汇编的方案是否使用预置装置,为名录收集了已安装的二元件(在独特的预留器中进行实验安装的行业),但如果档案有误,则可能无法运作。

否则,如果你想从你所汇编的不同地点来管理,那么,就在这里 s:

假设:

  • You want to run it from /usr/bin in the target system s view.
  • You want to install it under /tftpboot/rfs/usr/bin in the build system s view.

Steps:

./configure --prefix=/usr --build=i686-linux --host=arm-926ejs-linux-gnueabi
make
make DESTDIR=/tftpboot/rfs install

<>Warning:DESTDIR 是常规名称,但有些项目可能选择其他东西(或根本没有选择,在这种情况下,会乐于做假)。

问题回答

暂无回答




相关问题
makefile: how to show line numbers for debugging?

Is there a way to have make display the line number where it declares an error? The -d switch doesn t seem to cut it. Updated: Example output: Reaping winning child 0x08aa8648 PID 9381 /bin/sh: ...

What is the reasoning behind the Makefile whitespace syntax?

I m revisiting Python after Michael Sparks s excellent walk through of Peter Norvig s Python spell checker at the SO DevDay in London. One of the points he highlighted was how clean Python is to look ...

Debugging GNU make

Is there a command line way in make to find out which of the prerequisites of a target is not updated?

How to add an all rule to this Makefile?

I want to just type make all and have the following Makefile do everything it s supposed to do: LEX = lex YACC = yacc CC = gcc calcu: y.tab.o lex.yy.o $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl ...

How to discover number of *logical* cores on Mac OS X?

How can you tell, from the command line, how many cores are on the machine when you re running Mac OS X? On Linux, I use: x=$(awk /^processor/ {++n} END {print n+1} /proc/cpuinfo) It s not ...

Using extern in C doesn t work as expected

I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive(); extern int timer_x; #endif /*TUNABLES_H */ and ...

热门标签