[Slackbuilds-users] COMPAT32 question
B Watson
yalhcru at gmail.com
Thu Dec 18 00:53:34 UTC 2014
On 12/17/14, Ryan P.C. McQuen <ryan.q at linux.com> wrote:
> Furthermore, does someone know a better way to perform this check.
> Maybe I should be relying on checking glibc or gcc ...
That's what I'd do. In the section that checks ARCH:
...
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
[ -e /lib/libc.so.6 ] && COMPAT32="${COMPAT32:-yes}"
else
...
Doing it that way will autodetect, but still allow the user to override
with COMPAT32=no in the environment. It also avoids the use of find,
which is kinda slow and heavy.
As to whether it's a good idea... I don't see why not. The existing
apulse.SlackBuild already has multilib-specific code, this just automates
enabling it (instead of user having to manually COMPAT32=yes).
More information about the SlackBuilds-users
mailing list