linux.cf: use -fno-strict-aliasing, define DefaultGcc2i386Opt, use indenting to improve readability
This commit is contained in:
@@ -64,6 +64,7 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
|
|||||||
# error "Only ELF format is supported on linux"
|
# error "Only ELF format is supported on linux"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BuildLibPathVar LD_LIBRARY_PATH
|
#define BuildLibPathVar LD_LIBRARY_PATH
|
||||||
#define HasGcc YES
|
#define HasGcc YES
|
||||||
#define HasGcc2 YES
|
#define HasGcc2 YES
|
||||||
@@ -133,6 +134,10 @@ TIRPCLIB = -ltirpc
|
|||||||
TIRPCLIB =
|
TIRPCLIB =
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(DefaultGcc2i386Opt)
|
||||||
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
|
||||||
|
#endif
|
||||||
|
|
||||||
#if LinuxCLibMajorVersion < 6
|
#if LinuxCLibMajorVersion < 6
|
||||||
# define LinuxSourceDefines -D_POSIX_SOURCE \
|
# define LinuxSourceDefines -D_POSIX_SOURCE \
|
||||||
-D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
|
-D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
|
||||||
@@ -204,17 +209,17 @@ TIRPCLIB =
|
|||||||
#endif /* AMD64Architecture */
|
#endif /* AMD64Architecture */
|
||||||
|
|
||||||
#ifdef PpcArchitecture
|
#ifdef PpcArchitecture
|
||||||
#define OptimizedCDebugFlags -O2
|
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
||||||
# define LinuxMachineDefines -D__powerpc__
|
# define LinuxMachineDefines -D__powerpc__
|
||||||
#endif /* PpcArchitecture */
|
#endif /* PpcArchitecture */
|
||||||
|
|
||||||
#ifdef AlphaArchitecture
|
#ifdef AlphaArchitecture
|
||||||
#define OptimizedCDebugFlags -O2
|
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
||||||
# define LinuxMachineDefines -D__alpha__
|
# define LinuxMachineDefines -D__alpha__
|
||||||
#endif /* AlphaArchitecture */
|
#endif /* AlphaArchitecture */
|
||||||
|
|
||||||
#ifdef Mc68020Architecture
|
#ifdef Mc68020Architecture
|
||||||
#define OptimizedCDebugFlags -O2
|
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
||||||
# define LinuxMachineDefines -D__mc68000__
|
# define LinuxMachineDefines -D__mc68000__
|
||||||
# define StandardCppDefines -traditional
|
# define StandardCppDefines -traditional
|
||||||
#endif /* Mc68020Architecture */
|
#endif /* Mc68020Architecture */
|
||||||
|
|||||||
Reference in New Issue
Block a user