From owner-freebsd-hackers Wed Nov 22 14:58:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from coder.networkcomputerz.com (unknown [208.21.1.40]) by hub.freebsd.org (Postfix) with ESMTP id 535E137B479 for ; Wed, 22 Nov 2000 14:58:47 -0800 (PST) Received: from networkcomputerz.com (localhost.networkcomputerz.com [127.0.0.1]) by coder.networkcomputerz.com (8.9.3/8.9.3) with ESMTP id RAA34342 for ; Wed, 22 Nov 2000 17:57:35 -0500 (EST) (envelope-from andrew@networkcomputerz.com) Message-ID: <3A1C4F5F.81D0EF07@networkcomputerz.com> Date: Wed, 22 Nov 2000 17:57:35 -0500 From: Andrew Otwell X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: porting a Linux app Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Please respond to me directly (and the mailing list if you so choose).... I am attempting to port an application from Linux to FreeBSD (source code). I have been told that I need to compile the source against a different set of /include and /lib files. When compiled against the system libs it works fine but when I try to compile against our proprietary libs it doesn't seem to do what I ask. The code does compile and run. Problem is.... my gcc options do not seem to produce the results I'd like. I have attempted gcc -static -I /pathto/new/include -L /pathto/new/lib sourcefile.c but it always seems to compile against the /usr/include and /usr/lib files. I know this because I produced an ELF binary (sans the -static arg) and ran "ldd program-name" and it returned lgcc.2 => /usr/lib/libgcc.xxxxxxxxx and some other => /usr/lib/xxxxxxxxxx's. I have also tried renaming all "#include " to "#include "/pathto/new/include/stdio.h" and so on.... How do I force this source to compile using the /pathto/new/include and /pathto/new/lib ??????? -- Andrew Otwell andrew@networkcomputerz.com www.NetworkComputerz.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message