public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: GCJ-patches <java-patches@gcc.gnu.org>
Cc: sbd@NetBSD.org
Subject: Fwd: Fix the java-home OS include directory.
Date: Fri, 11 May 2012 10:30:00 -0000	[thread overview]
Message-ID: <4FACE92A.4070509@redhat.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1205071320060.19976@nygne.qenxr.bet.am>

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

I don't understand this.  Comments?

Andrew.

[-- Attachment #2: Fix the java-home OS include directory_.eml --]
[-- Type: message/rfc822, Size: 6143 bytes --]

From: Steven Drake <sbd@NetBSD.org>
To: gcc-patches@gcc.gnu.org
Subject: Fix the java-home OS include directory.
Date: Mon, 7 May 2012 13:21:49 +1200 (NZST)
Message-ID: <alpine.LNX.2.00.1205071320060.19976@nygne.qenxr.bet.am>

If the libjava configure option --enable-java-home is used the os directory
under include will always be 'linux' as it is hardcoded so.

I.E. it is not configurable using '--with-os-directory' or auto-detected as
suggested by the configure help text.

-- 
Steven

2012-05-07	Steven Drake <sbd@NetBSD.org>

	libjava:
	* Makefile.am (install-data-local): Use the $(OS) variable for the
	java-home os directory under include.

diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 1b71962..b40fa76 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -899,7 +899,7 @@ if CREATE_JAVA_HOME
 	cd $(DESTDIR)$(JRE_LIB_DIR)/security; \
 	  ln -sf $$RELATIVE/classpath.security java.security; \
 	cd $$working_dir; \
-	$(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/linux; \
+	$(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS); \
 	$(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client; \
 	$(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server; \
 	$(mkinstalldirs) $(DESTDIR)$(SDK_LIB_DIR); \
@@ -935,9 +935,9 @@ if CREATE_JAVA_HOME
 	  DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/`echo gcj | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
 	    -print-file-name=include/$$headername.h)); \
 	  RELATIVE=$$(relative $$DIRECTORY \
-	    $(DESTDIR)$(SDK_INCLUDE_DIR)/linux); \
+	    $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS)); \
 	  ln -sf $$RELATIVE/$$headername.h \
-	    $(DESTDIR)$(SDK_INCLUDE_DIR)/linux/$$headername.h; \
+	    $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS)/$$headername.h; \
 	done; \
 	RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
 	  $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR)); 

           reply	other threads:[~2012-05-11 10:30 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <alpine.LNX.2.00.1205071320060.19976@nygne.qenxr.bet.am>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FACE92A.4070509@redhat.com \
    --to=aph@redhat.com \
    --cc=java-patches@gcc.gnu.org \
    --cc=sbd@NetBSD.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).