diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-01 16:52:48 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-01 16:52:48 +0000 |
commit | 18d8a920006a6301b57ccfdcc96961911af99f4c (patch) | |
tree | e68bbf017c4e655f0566099a87aba3103b16cdca /x11/libXt/Makefile | |
parent | 7fc035c0fea91c32202dafcad515cd304c44ea91 (diff) | |
download | pkgsrc-18d8a920006a6301b57ccfdcc96961911af99f4c.tar.gz |
Teach libXt about cross-compiliation:
- add an automake conditional to configure
- use that to build xmakestr using manual build rules. X11_CFLAGS is
honoured, but not CFLAGS as the latter is likely to contain platform
specific flags.
- use either makestr or xmakestr for building StringDefs.c, depending
on whether we are cross-compiling or not.
- pass down native compiler and flags for cross-compiliation
Supported-by: Google SoC 2007
Diffstat (limited to 'x11/libXt/Makefile')
-rw-r--r-- | x11/libXt/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/x11/libXt/Makefile b/x11/libXt/Makefile index 96a9f168f90..85de6dc5c90 100644 --- a/x11/libXt/Makefile +++ b/x11/libXt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2007/07/03 13:35:49 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2007/08/01 16:52:48 joerg Exp $ # DISTNAME= libXt-1.0.5 @@ -27,6 +27,10 @@ PKGCONFIG_OVERRIDE+= xt.pc.in CONFIGURE_ARGS+= --disable-malloc0returnsnull .endif +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +MAKE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include +.endif + .include "../../x11/libSM/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../x11/kbproto/buildlink3.mk" |