At work I am doing various cross compiles in order to make a product under freebsd that actually will run under a modified FreeBSD that runs on an appliance. We want to get away from hand rolling everything to leverage all teh work in getting ports working well on FreeBSD.

We have some extra syscalls and some structures have different sizes, so we need to compile/link agains an alternate set of includes/libraries and not those in /usr/include or /usr/lib.

Ideally I want to use the "--sysroot" and "-isystem" options to the compiler/linker or failing that, add a -I or -L entries to make it look at the correct includes and libraries, not those in the base system.


In many ports CFLAGS etc. are sent in via the arguments to ./configure or environment vars, but there are many other ports that have other ways to specify these.

Does the ports framework have any standard way to do this? LDEXTRA_ARGS or EXTRA_CFLAGS or similar?

I've looked around and can't really see anything. Best would be a single file to which I could add these things but adding them to the environment would also work.

yours in ports ignorance..


Julian


_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to