Difference between revisions of "CompilingNativeMods"

From Oldunreal-Wiki
Jump to navigation Jump to search
(Created page with "To compile native Linux mods you have to use the following options in CodeBlocks: Compiler defines: _REENTRANT __LINUX_X86__ __LINUX__ DO_RYANS_HACKY_GUARD_BLOCKS UTGLR_UNREA...")
 
Line 2: Line 2:


Compiler defines:
Compiler defines:
_REENTRANT
_REENTRANT
__LINUX_X86__
__LINUX_X86__
__LINUX__
__LINUX__
DO_RYANS_HACKY_GUARD_BLOCKS
DO_RYANS_HACKY_GUARD_BLOCKS
UTGLR_UNREAL_227_BUILD
UTGLR_UNREAL_227_BUILD
UNICODE
UNICODE


Additional compiler settings:
Additional compiler settings:
-fsigned-char
-fsigned-char
-fno-strict-aliasing
-fno-strict-aliasing
-fno-for-scope
-fno-for-scope
-fno-toplevel-reorder
-fno-toplevel-reorder
-Wno-reorder
-Wno-reorder
-Wno-write-strings
-Wno-write-strings
-fno-tree-dominator-opts
-fno-tree-dominator-opts
-fno-tree-dse
-fno-tree-dse
-fno-tree-fre
-fno-tree-fre
-fno-tree-pre
-fno-tree-pre
-fno-gcse
-fno-gcse
-fno-cse-follow-jumps
-fno-cse-follow-jumps
-ffast-math
-ffast-math
-m32
-m32


Linker settings:
Linker settings:
  -Wl,-rpath,.
  -Wl,-rpath,.
-m32
-m32

Revision as of 09:14, 17 March 2014

To compile native Linux mods you have to use the following options in CodeBlocks:

Compiler defines:

_REENTRANT
__LINUX_X86__
__LINUX__
DO_RYANS_HACKY_GUARD_BLOCKS
UTGLR_UNREAL_227_BUILD
UNICODE

Additional compiler settings:

-fsigned-char
-fno-strict-aliasing
-fno-for-scope
-fno-toplevel-reorder
-Wno-reorder
-Wno-write-strings
-fno-tree-dominator-opts
-fno-tree-dse
-fno-tree-fre
-fno-tree-pre
-fno-gcse
-fno-cse-follow-jumps
-ffast-math
-m32

Linker settings:

-Wl,-rpath,.
-m32