<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 23/01/2013 07:21, Matteo Bernardini
wrote:<br>
</div>
<blockquote
cite="mid:CAPsDuS7Q-mknmZLyoDrP6XcT5hRkvyjMPvL-Ro2wqWPW+fb5rg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I lied (previous versions are fails)<br>
<br>
SLKCFLAGS=${SLKCFLAGS:--O2}<br>
LIBDIRSUFFIX=""<br>
[ "$(uname -m)" = "x86_64" ] && SLKCFLAGS="$SLKCFLAGS
-fPIC" LIBDIRSUFFIX="64"<br>
[ "$ARCH" = "i486" ] || [ "$ARCH" = "native" ] &&
SLKCFLAGS="$SLKCFLAGS -march=$ARCH"<br>
[ "$ARCH" = "i486" ] || [ "$ARCH" = "i686" ] &&
SLKCFLAGS="$SLKCFLAGS -mtune=i686"<br>
<br>
</div>
Matteo<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SlackBuilds-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SlackBuilds-users@slackbuilds.org">SlackBuilds-users@slackbuilds.org</a>
<a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a>
Archives - <a class="moz-txt-link-freetext" href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a>
FAQ - <a class="moz-txt-link-freetext" href="http://slackbuilds.org/faq/">http://slackbuilds.org/faq/</a>
</pre>
</blockquote>
i think you would have difficulties creating 32bit packages from
64bit (multilib) slackware, as uname -m would set libdirsuffix to 64
which is not what you want for 32bit package. you might have to add
a && ![ "$ARCH" = "i486" ] or something similar after the
first part of the test.<br>
Tim<br>
</body>
</html>