On Wed, Apr 1, 2009 at 1:17 PM, Alexandre Bique <bique.alexandre@gmail.com> wrote:
Hi,
I am trying these FLAGS:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftree-parallelize-loops=4" CXXFLAGS="${CFLAGS}"
And i need to link to libgomp so i tried to add
LDFLAGS="-lgomp"
But it doesn't work. What should i do doctor ?
echo "does not work" > /dev/brain/psychic /dev/brain/psychic: No such file or directory Hehe that's fun, but when i try to do it, it works... arf do i have a
On Wed, Apr 1, 2009 at 7:41 PM, Aaron Griffin <aaronmgriffin@gmail.com> wrote: problem doctor ? ;-)
Try giving us error messages or... anything besides "does not work" Sorry. Please forgive me.
Also... you don't need to modify makepkg.conf for one package... those are GLOBAL flags...
Well i though it was implicit. When you use -ftree-parallelize-loops=4, it enables OpenMP. When gcc links, it needs to link against pthread and gomp. That's why i added LDFLAGS="-lgomp". But i forgot -lpthread. Thank you. -- Alexandre Bique