From 5ca916c266ef2b522b14ca94dd0b7df032f991e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 7 Dec 2006 02:27:22 +0000 Subject: [PATCH] Use the proper platform include directory for jni (for FreeBSD and Linux at least). --- eclass/java-utils-2.eclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 0d8615f68a45..6f22c923f209 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.32 2006/12/07 02:14:46 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.33 2006/12/07 02:27:22 flameeyes Exp $ # ----------------------------------------------------------------------------- @@ -26,6 +26,8 @@ inherit eutils versionator multilib +IUSE="elibc_FreeBSD" + # ----------------------------------------------------------------------------- # @section-begin variables # @section-title Variables @@ -1272,9 +1274,11 @@ java-pkg_javac-args() { java-pkg_get-jni-cflags() { local flags="-I${JAVA_HOME}/include" + local platform="linux" + use elibc_FreeBSD && platform="freebsd" + # TODO do a check that the directories are valid - # TODO figure out how to cope with other things than linux... - flags="${flags} -I${JAVA_HOME}/include/linux" + flags="${flags} -I${JAVA_HOME}/include/${platform}" echo ${flags} } -- 2.26.2