Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 186804 Details for
Bug 263897
x11-libs/libXt: Better patch for cross-compiling
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Reworked patch
libXt-1.0.5-crosscompile-makestr.patch (text/plain), 2.01 KB, created by
Sven 'sleipnir' Rebhan
on 2009-03-30 21:18:45 UTC
(
hide
)
Description:
Reworked patch
Filename:
MIME Type:
Creator:
Sven 'sleipnir' Rebhan
Created:
2009-03-30 21:18:45 UTC
Size:
2.01 KB
patch
obsolete
>--- configure.ac 2009-03-26 21:43:13.000000000 +0000 >+++ configure.ac.new 2009-03-26 21:43:50.000000000 +0000 >@@ -28,6 +28,10 @@ > dnl > dnl > AC_INIT(libXt, 1.0.5, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXt) >+ >+AC_CANONICAL_BUILD >+AC_CANONICAL_HOST >+ > AM_INIT_AUTOMAKE([dist-bzip2]) > AM_MAINTAINER_MODE > >@@ -37,6 +41,18 @@ > AC_PROG_CC > AC_PROG_LIBTOOL > >+AM_CONDITIONAL(CROSS_COMPILING, [ test $cross_compiling = yes ]) >+ >+if test "x${CC_FOR_BUILD+set}" != "xset" ; then >+ if test "x$cross_compiling" = "xyes" ; then >+ CC_FOR_BUILD=gcc >+ else >+ CC_FOR_BUILD=$CC >+ fi >+fi >+AC_MSG_RESULT([$CC_FOR_BUILD]) >+AC_SUBST(CC_FOR_BUILD) >+ > PKG_CHECK_MODULES(XT, sm x11 xproto kbproto) > > # Needed for including Xalloca.h > >--- util/Makefile.am 2009-03-26 21:55:27.000000000 +0000 >+++ util/Makefile.am.new 2009-03-26 21:55:52.000000000 +0000 >@@ -1,7 +1,9 @@ > if INSTALL_MAKESTRS > bin_PROGRAMS = makestrs >+noinst_PROGRAMS = $(MAKESTRS_PROG) > else >-noinst_PROGRAMS = makestrs >+noinst_PROGRAMS = makestrs >+noinst_PROGRAMS += $(MAKESTRS_PROG) > endif > > EXTRA_DIST = \ >@@ -41,3 +42,11 @@ > > .man.$(APP_MAN_SUFFIX): > sed $(MAN_SUBSTS) < $< > $@ >+ >+if CROSS_COMPILING >+MAKESTRS_PROG=xmakestrs$(EXEEXT) >+ >+xmakestrs$(EXEEXT): makestrs.c >+ $(CC_FOR_BUILD) $(X11_CFLAGS) $(CPPFLAGS_FOR_BUILD) \ >+ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ makestrs.c >+endif > >--- src/Makefile.am 2006-12-19 03:40:53.000000000 +0000 >+++ src/Makefile.am.new 2009-03-26 22:03:18.000000000 +0000 >@@ -92,12 +92,19 @@ > > STRING_LIST = $(top_srcdir)/util/string.list > >+if CROSS_COMPILING >+MAKESTRS=$(top_builddir)/util/xmakestrs >+else >+MAKESTRS=$(top_builddir)/util/makestrs >+endif >+ >+ > all-local: $(BUILT_FILES) > > $(BUILT_HEADER): $(BUILT_SOURCE) > > $(BUILT_SOURCE): >- $(top_builddir)/util/makestrs -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c >+ $(MAKESTRS) -i $(top_srcdir) $(STRINGSABIOPTIONS) < $(STRING_LIST) > StringDefs.c > mkdir -p $(top_builddir)/src > mkdir -p $(top_builddir)/include/X11 > cp StringDefs.h $(top_builddir)/include/X11
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263897
:
186355
|
186364
|
186366
| 186804 |
203895
|
203896