slackbuild and multilib
The SlackBuilds FAQ suggests that setting LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ can help solving multilib issues related to the build process trying to link 32bit libraries instead of 64bit libraries. I was wondering how to achieve the same thing when the slackbuild relies on CMAKE?
|
generally
-DLIB_SUFFIX=${LIBDIRSUFFIX} \ --- oh wait a minute, I misread your post sorry... |
Or you can just edit the .SlackBuild file for the following field:
ARCH=${ARCH:-x86_64} or ARCH=${ARCH:-i486} |
I think both of you are missing the point here.
Escaflown talks about the fact that on a multilib system, the 32bit libraries can get in the way when linking your 64bit software into an executable program. Escaflown, I think you should just try adding Code:
export LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" I did not run into this issue yet with any cmake build by the way. Eric |
Thanks Bob! I tried your suggestion but it didn't work. I am having the issue with the kid3 slackbuild. The reason why I'm thinking about the build process trying to link to some 32 bits libraries is that it fails with:
Quote:
|
Try using this:
Code:
CMAKE_PREFIX_PATH=/usr/lib$LIBDIRSUFFIX/qt \ come to think of it... That fix makes no sense... It helped compile q4wine though. GUI came up when I launched it, some other things didn't work though. |
I was curious about this too, did a little searching and see this line often:
Code:
-DCMAKE_LD_FLAGS:STRING="-L/usr/lib64" \ |
Quote:
|
In my case, I went the dirty and ugly way:
mv /usr/lib /usr/lib_ [compile] mv /usr/lib_ /usr/lib but I admit that's ugly and works only because I don't really use much 32bit stuff. |
Quote:
|
I haven't tried this... but maybe there is a way to force ldconf to list the 64 libs before 32 libs by editing /etc/ld.so.conf?
and if updating it with /sbin/ldconfig doesn't do it, try moving /etc/ld.so.cache out of the way and then run it again. |
Quote:
Quote:
I am wondering now if it is normal that /usr/local/lib64 is empty ??? |
Everything under /usr/local should be empty unless *you* install something there.
|
Quote:
|
All times are GMT -5. The time now is 10:10 PM. |