Quote:
Originally Posted by gnashley
You could probably just move them over, but it would be better to create a patch or use sed to change the paths in the Makefiles before compiling.
|
Quick question. Please forgive me if I'm wording this incorrectly. I have my klibc build finished, I just need to get this libdir part worked out. I looked through the Makefile and found the section that deals with libdir... from Makefile
# Location for installation
export prefix = /usr
export bindir = $(prefix)/bin
export libdir = $(prefix)/lib
export mandir = $(prefix)/man
export INSTALLDIR = $(prefix)/lib/klibc
export INSTALLROOT =
Now if I manullay edit the libdir and INSTALLDIR line to /usr/lib64 it will install correctly to lib64, however this ugly since If I decide to use the build on my i486 machine then I will have to edit the Makefile by hand and change it back. Like you said above I should probably use sed or make a patch. I'm not to familiar yet with sed, but I am learning

. So I guess my question is, if I write a patch that fixes the lib64 path issues, how would I tell the slackbuild to say use the patch for x86_64 and to ignore it if I am using i486? I think I got an Idea how to do this, you would use the if and then command?
Or is it possible to patch the Makefile so that it can automatically recoginze what ARCH I'm using and act accordingly?
Thanks for the help guys.