1. VectorLinux Core
  2. vabs

Commits

Uelsk8s  committed 5739bce

build gcc added ecj1

  • Participants
  • Parent commits c70a515
  • Branches veclinux-7.1

Comments (0)

Files changed (1)

File var/vabs/gcc/src/gcc.SlackBuild

View file
 # Copy ecj.jar into the TLD of the source. Needed for java compiler.
 # This can be retrieved from ftp://sourceware.org/pub/java
 cp -v $CWD/ecj-4.5.jar gcc-$VERSION/ecj.jar
-#cp -v $CWD/ecj-4.5.jar /usr/share/java/eclipse-ecj.jar
+cp -v $CWD/ecj-4.5.jar /usr/share/java/eclipse-ecj.jar
 
 # Use an antlr runtime to compile javadoc.
 # The runtime can be obtained from:
 
 # gcc-java:
 ( cd $PKG5
-  #cp -v $CWD/ecj-4.5.jar usr/share/java/eclipse-ecj.jar
+  cp -v $CWD/ecj-4.5.jar usr/share/java/eclipse-ecj.jar
   mkdir -p usr/bin
   mv $PKG1/usr/bin/aot-compile usr/bin
   mv $PKG1/usr/bin/addr2name.awk usr/bin
   mv $PKG1/usr/share/java usr/share
   # The ecj wrapper script:
   cat $CWD/ecj.sh | sed -e "s,@JAVADIR@,/usr/share/java," > usr/bin/ecj
-  #cat $CWD/ecj.sh | sed -e "s,@JAVADIR@,/usr/share/java," > usr/bin/ecj1
+  cat $CWD/ecj.sh | sed -e "s,@JAVADIR@,/usr/share/java," > usr/bin/ecj1
   chmod 755 usr/bin/ecj
-  #chmod 755 usr/bin/ecj1
+  chmod 755 usr/bin/ecj1
   # The JAVA_HOME compatibility links.
   # Caution: non-multilib arch-independent stuff! No lib64 here.
-  mkdir -p usr/lib$LIBDIRSUFFIX
-  mv $PKG1/usr/lib$LIBDIRSUFFIX/jvm* usr/lib$LIBDIRSUFFIX
+  mkdir -p usr/lib
+  mv $PKG1/usr/lib$LIBDIRSUFFIX/jvm* usr/lib
+  mv $PKG1/usr/lib/jvm* usr/lib
   # And add the missing javac symlink:
   ln -s ../../../bin/ecj usr/lib$LIBDIRSUFFIX/jvm/bin/javac
   # Don't package libffi stuff anymore.  GCC will link the internal version