Sbopkg : building a queue file with CFLAGS and CXXFLAGS set.
Hi.
I wonder how to build a queue file without having to edit each slackbuild to include custom CFLAGS and CXXFLAGS. Do i simply need to make an export ? |
you can export your own SLKCFLAGS and export ARCH to soemthing that is not handled by default int the slackbuild files or use sed to replace SLKCFLAGS to what you want
|
Is SLKCFLAGS the sbo env variable ?
|
look at the build scripts
normaly you have something like this Code:
if [ "$ARCH" = "i486" ]; then Code:
CFLAGS="$SLKCFLAGS" \ this is somehow a bug in my opinion, better would be for example SLKCFLAGS=${SLKCFLAGS:-"-O2 -march=i486 -mtune=i686"} but I never cared about that cause for these binaries where my own flags are important I have my own buildscripts anyway and it is the way how slackbuilds are written, so I think this will never change, but since they are all equal, sed -i is your friend |
Ok.
I wondered about this because, as you said, all Slackbuilds have not the same options. Thank you. |
All times are GMT -5. The time now is 12:54 AM. |