Can't cross-compile nfs-utils

Hi,

I've got a working embedded Linux build that I am trying to add NFS support to. I've grabed the nfs-utils-1.0.7 package and am trying to configure and cross compile it for my target (an ARM). The problem I am having is that the makefile compiles a tool (rpcgen) using the target compiler and then tries to use rpcgen in the make. Obviously it needs to compile rpc-gen with the host compiler, but I have not figured out how to convince it to do so. I'm new to embedded Linux and my initial approach of figuring out the chain of makefiles seems daunting. I'm hoping that there is some simple change I need to make to my configure or make invocation, of that someone can point me to documentation on this whole configure/make process for Linux. Here is an excerpt from my make file that invokes nfs-util's configure and make...

Thanks,

Greg Strange Synapse Product Development

(cd $(NFS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --datadir=/usr/share \ --localstatedir=/var \ --mandir=/usr/man \ --infodir=/usr/info \ $(DISABLE_NLS) \ --with-shared \ --program-transform-name=s,,, \ --disable-gss \ --disable-nfsv4 \ ); touch $(NFS_DIR)/.configured

$(NFS_DIR)/$(NFS_BINARY): $(NFS_DIR)/.configured $(MAKE) CC=$(TARGET_CC) CC_FOR_BUILD=$(HOSTCC) -C

Reply to
greg
Loading thread data ...

snipped-for-privacy@synapsedev.com a écrit :

formatting link

Eric

Reply to
Eric BENARD

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.