[2702] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

pending/398: makefile setup very inconvenient for cross-compiling.

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Mon Mar 17 15:18:43 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Bill Sommerfeld <sommerfeld@apollo.hp.com>
Date: Mon, 17 Mar 1997 15:12:03 -0500
From: Bill Sommerfeld <sommerfeld@apollo.hp.com>
To: krb5-bugs@MIT.EDU
Cc: lanz@apollo.hp.com


>Number:         398
>Category:       pending
>Synopsis:       makefile setup very inconvenient for cross-compiling.
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Mar 17 15:13:01 EST 1997
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
We need to cross-compile stock kerberos 5 1.0 in an cross-development
environment where the environment's includes and libraries already
include a *different* GSSAPI library from the one included in the krb5
distribution.  This essentially means that we have to tack on -I
options pointing at the cross-development includes at the *end* of
CFLAGS, not at the beginning.

Unfortunately it appears that:

 1) the default .c.o rule is set in each Makefile.in, not in
config/pre.in or config/post.in

 2) CFLAGS is set in each Makefile.in

 3) Several of the Makefile.in's define CFLAGS as

	CFLAGS=$(CCOPTS) $(DEFS) -I.... 

so the local includes come in last; in order to accomplish this we
will have to whack all the Makefile.in's, which is a bit annoying..

I sure hope I'm not missing anything blindingly obvious, but it looks
as if we're going to have to whack all the CFLAGS= lines to include a
$(CCENDOPTS), or else reorder the definitions to sort the options
including `-I's to the beginning..

Anyone see an easier way out of this mess?  

					- Bill

home help back first fref pref prev next nref lref last post