FAQ compile flags for 64 bit issue

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
aus9

FAQ compile flags for 64 bit issue

Post#1 by aus9 » 24 Oct 2015, 05:20

Hi

The FAQ for compiling links to slax 32 bit so I wonder why I can't see a FAQ for 64 bit compiling?

Also I did do a fairly fast search of this forum, using the search term "march=x86-64" without the quotes and found some potential conflicts.

Naturally I am standing in the naughty corner as I type this and am happy to declare my knowledge of slackbuilds is limited.

2) configure options also please


Below is trivia if interested

#########################
So here goes search results show

viewtopic.php?f=53&t=417&p=2625&hilit=m ... 6+64#p2625
Which suggests look at the flags here
http://ftp.heanet.ie/mirrors/ftp.slackw ... SlackBuild
SLKCFLAGS="-O2 -fPIC"
CFLAGS="$SLKCFLAGS"
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/man
Minor edit to remove \ and extra lines to configure line above.

but I also found
viewtopic.php?f=53&t=832&p=6689&hilit=m ... 6+64#p6689
here is the config for 64bits:
CFLAGS="-Os -march=x86-64"
CXXFLAGS="-Os -march=x86-64"
MAKEOPTS="-j2"
./configure --prefix=/usr --mandir=/usr/man --libdir=/usr/lib64 --enable-runtime-cpudetection --yasm=''
Minor edit to create new lines to above quote box

So I am confused on whether to build with Os or O2 .....the answer I am sure will delight me

thanks for reading

Post Reply