LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   One place to build them all! (http://www.linuxquestions.org/questions/slackware-14/one-place-to-build-them-all-4175413256/)

AlleyTrotter 06-25-2012 07:26 AM

One place to build them all!
 
I just built openjdk 7u5 yesterday. A quick look at the slackbuild shows the same script now supports arm chips as well as the x86 group.
Just saying!
I think this is pretty amazing.

john

Just trying to give credit as it is due.
If you look at Alien's slackbuild it is a dramatic change.

ReaperX7 06-26-2012 12:25 AM

Most slackbuilds out there all have the options for building for x86, x86-64, and ARM architectures as per their design.

55020 06-26-2012 03:29 AM

Yeah, but our pal Alien Bob has been quietly busy again. This (e.g. libatasmart.SlackBuild) is new in yesterday's big update:

Code:

if [ -z "$ARCH" ]; then
  case "$MARCH" in
    i?86)    export ARCH=i486 ;;
    armv7hl) export ARCH=$MARCH ;;
    arm*)    export ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
    *)      export ARCH=$MARCH ;;
  esac
fi

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
  SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
  LIBDIRSUFFIX=""
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

case "$ARCH" in
    arm*) TARGET=$ARCH-slackware-linux-gnueabi ;;
    *)    TARGET=$ARCH-slackware-linux ;;
esac

A nice incremental change, but as a new Pi user ;) I'd perhaps like a way to set my own SLKCFLAGS, something like

Code:

else
  SLKCFLAGS="${SLKCFLAGS:-O2}"
  LIBDIRSUFFIX=""
fi


ponce 06-26-2012 03:35 AM

Quote:

Originally Posted by 55020 (Post 4712248)
Yeah, but our pal Alien Bob has been quietly busy again. This (e.g. libatasmart.SlackBuild) is new in yesterday's big update:

hadn't noticed that, nice catch :)

Quote:

A nice incremental change, but as a new Pi user ;) I'd perhaps like a way to set my own SLKCFLAGS, something like

Code:

else
  SLKCFLAGS="${SLKCFLAGS:-O2}"
  LIBDIRSUFFIX=""
fi


it has been asked already in the past and surely would be real handy :)

dwblas 06-26-2012 01:56 PM

I will also check slacky.eu if it is not available on slackware.com or slackbuilds.org.


All times are GMT -5. The time now is 11:52 AM.