LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2012, 07:26 AM   #1
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Smile 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.

Last edited by AlleyTrotter; 06-26-2012 at 02:36 PM. Reason: backup
 
Old 06-26-2012, 12:25 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Most slackbuilds out there all have the options for building for x86, x86-64, and ARM architectures as per their design.
 
Old 06-26-2012, 03:29 AM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 06-26-2012, 03:35 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by 55020 View Post
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
 
Old 06-26-2012, 01:56 PM   #5
dwblas
Member
 
Registered: Jun 2011
Posts: 87

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mplayer place in KDE, lost icon, wrong place. firekage Slackware 4 01-24-2012 02:23 PM
May not be the right place to post this but was no better place. Knightron LQ Suggestions & Feedback 5 03-13-2011 03:24 PM
LXer: Add an Auto-Incrementing Build-Number to Your Build Process LXer Syndicated Linux News 0 07-09-2008 01:00 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration