diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-04-27 14:07:36 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-04-27 14:07:36 +0000 |
commit | a62ceefdd413e199af599458d653ca5e5728e220 (patch) | |
tree | c9c42cf50e976dce8abc1b13612a1fb810f894f4 /toolchain | |
parent | 1f3eec6e8fc30b961e9b24ca1d7fc676fcdd41ae (diff) | |
download | buildroot-novena-a62ceefdd413e199af599458d653ca5e5728e220.tar.gz buildroot-novena-a62ceefdd413e199af599458d653ca5e5728e220.zip |
toolchain/gcc: fix java support
Not runtime tested, but now it atleast builds.
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/Config.in | 4 | ||||
-rw-r--r-- | toolchain/gcc/gcc-uclibc-4.x.mk | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in index d9f90fdea..293cac092 100644 --- a/toolchain/gcc/Config.in +++ b/toolchain/gcc/Config.in @@ -142,9 +142,13 @@ config BR2_GCC_CROSS_FORTRAN help Build a Fortran cross-compiler +config BR2_GCC_CROSS_JAVA + bool + config BR2_INSTALL_LIBGCJ bool "Build/install java compiler and libgcj?" depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP + select BR2_GCC_CROSS_JAVA help Build/install java compiler and libgcj? diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index 1894c5703..8ecd97ad0 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -80,6 +80,9 @@ endif ifeq ($(BR2_GCC_CROSS_FORTRAN),y) GCC_CROSS_LANGUAGES:=$(GCC_CROSS_LANGUAGES),fortran endif +ifeq ($(BR2_GCC_CROSS_JAVA),y) +GCC_CROSS_LANGUAGES:=$(GCC_CROSS_LANGUAGES),java +endif ifeq ($(BR2_GCC_CROSS_OBJC),y) GCC_CROSS_LANGUAGES:=$(GCC_CROSS_LANGUAGES),objc endif @@ -356,14 +359,11 @@ ifeq ($(BR2_GCC_SHARED_LIBGCC),y) endif endif ifeq ($(BR2_INSTALL_LIBGCJ),y) - cp -dpf $(STAGING_DIR)/lib/libgcj.so* $(TARGET_DIR)/lib/ - cp -dpf $(STAGING_DIR)/lib/lib-org-w3c-dom.so* $(TARGET_DIR)/lib/ - cp -dpf $(STAGING_DIR)/lib/lib-org-xml-sax.so* $(TARGET_DIR)/lib/ + cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcj.so* $(TARGET_DIR)/usr/lib/ mkdir -p $(TARGET_DIR)/usr/lib/security - cp -dpf $(STAGING_DIR)/usr/lib/security/libgcj.security \ - $(TARGET_DIR)/usr/lib/security/ cp -dpf $(STAGING_DIR)/usr/lib/security/classpath.security \ $(TARGET_DIR)/usr/lib/security/ + -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libgcj.so* endif mkdir -p $(@D) touch $@ |