public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR libffi/23935: libffi headers installed in wrong directory.
@ 2006-09-11 23:41 David Daney
  2006-09-12  4:10 ` Mark Mitchell
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: David Daney @ 2006-09-11 23:41 UTC (permalink / raw)
  To: java-patches; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]

This is not a regression, but Mark has indicated in the past that these 
types of installation problems should be fixed even at this late stage.

There are two changes here really:

1)  ffi.h was moved from $(includedir) to 
$(libdir)/gcc/$(target_alias)/$(gcc_version)/include.  This fixes the 
problem noted in the PR.

2) In order to be at all useful, ffitarget.h must be in the compiler's 
search path.  It was in 
$(libdir)/gcc/$(target_alias)/$(gcc_version)/include/libffi, which does 
not meet that criterion.  I moved it to the same place as ffi.h.

Regression tested on i686-pc-linux with no regressions (but installation 
problems tend not to be exercised by the testsuite)

I also tested building a couple of the libffi testsuite tests out of 
tree to confirm that the headers are properly found by gcc (and the are).


OK to commit?

2006-09-11  David Daney  <ddaney@avtrex.com>

	PR ffi/23935
	include/Makefile.am: Install both ffi.h and ffitarget.h in
	$(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
	aclocal.m4: Regenerated for automake 1.9.6.
	Makefile.in: Regenerated.
	include/Makefile.in: Regenerated.
	testsuite/Makefile.in: Regenerated.

[-- Attachment #2: pr23935.d --]
[-- Type: text/plain, Size: 647 bytes --]

Index: include/Makefile.am
===================================================================
--- include/Makefile.am	(revision 116759)
+++ include/Makefile.am	(working copy)
@@ -5,12 +5,8 @@
 DISTCLEANFILES=ffitarget.h
 EXTRA_DIST=ffi.h.in ffi_common.h
 
-hackdir=$(includedir)
-
-hack_DATA= ffi.h
-
 # Where generated headers like ffitarget.h get installed.
 gcc_version   := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-toollibffidir := $(libdir)/gcc/$(target_alias)/$(gcc_version)/include/libffi
+toollibffidir := $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
 
-toollibffi_HEADERS = ffitarget.h
+toollibffi_HEADERS = ffi.h ffitarget.h

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-09-24 17:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-11 23:41 [PATCH] PR libffi/23935: libffi headers installed in wrong directory David Daney
2006-09-12  4:10 ` Mark Mitchell
2006-09-12  4:14   ` Andrew Pinski
2006-09-12 16:03     ` Tom Tromey
2006-09-12 10:19 ` Anthony Green
2006-09-13  0:59 ` Gerald Pfeifer
2006-09-13  1:07   ` David Daney
2006-09-13  8:29   ` Richard Guenther
2006-09-13 16:31     ` David Daney
2006-09-15 17:23     ` Gerald Pfeifer
2006-09-13 16:41   ` Tom Tromey
2006-09-24 17:28     ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).