You are not logged in.

#1 2012-08-10 21:35:11

Xaero252
Member
Registered: 2011-11-28
Posts: 107

CMAKE and compiler flags

So I've been attempting to compile two packages that use CMAKE in lieu of plain ol' make - pcsx2 (which is compiled as 32-bit, could introduce more problems?) and olphin-emu-git, and have had the flags set in my makepkg.conf like so:

CFLAGS="-march=x86-64 -mtune=corei7  -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=corei7 -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"

However, the resulting executable inherits none of the flags I specified above. How would I set the flags for CMAKE in these particular cases? pcsx2 is being compiled to 32-bit so my flags are probably being overridden when compiling since it compiles for a 32-bit executable.

Offline

Board footer

Powered by FluxBB