Uelsk8s avatar Uelsk8s committed 1fa4216

rebuild gcc move gdb py files

Comments (0)

Files changed (1)

var/vabs/gcc/src/gcc.SlackBuild

   make install DESTDIR=$PKG1
 
 #Be sure the "specs" file is installed.
-if [ ! -r $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${ARCH}-slackware-linux/${VERSION}/specs ]; then
-  cat stage1-gcc/specs > $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${ARCH}-slackware-linux/${VERSION}/specs
+if [ ! -r $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs ]; then
+  cat stage1-gcc/specs > $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs
 fi
 
 # Make our 64bit gcc look for 32bit gcc binaries in ./32 subdirectory:
 if [ "$ARCH" = "x86_64" ]; then
   sed -i 's#;.\(:../lib !m64 m32;\)$#;32\1#' \
-    $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${ARCH}-slackware-linux/${VERSION}/specs
+    $PKG1/usr/lib${LIBDIRSUFFIX}/gcc/${TARGET}/${VERSION}/specs
 fi
 
 #  make ada.install-common DESTDIR=$PKG1
 
 # gcc-g++:
 ( cd $PKG2
+  mkdir -p usr/share/gdb/python/auto-load/;mv usr/lib${LIBDIRSUFIX}/*.py \
+    usr/share/gdb/python/auto-load/
   mkdir -p usr/bin
   mv $PKG1/usr/bin/*++* usr/bin
   mkdir -p usr/include
 
 # gcc-gfortran:
 ( cd $PKG3
+  mkdir -p usr/share/gdb/python/auto-load/;mv usr/lib${LIBDIRSUFIX}/*.py \
+    usr/share/gdb/python/auto-load/
   mkdir -p usr/bin
   mv $PKG1/usr/bin/*gfortran* usr/bin
   mv $PKG1/usr/bin/*95* usr/bin
 
 # gcc-java:
 ( cd $PKG5
+  mkdir -p usr/share/gdb/python/auto-load/;mv usr/lib${LIBDIRSUFIX}/*.py \
+    usr/share/gdb/python/auto-load/
   mkdir -p usr/share
   mv $PKG1/usr/share/java usr/share
   cp -v $CWD/ecj-4.5.jar usr/share/java/eclipse-ecj.jar
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.