You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
--- galera-3-25.3.12/SConstruct 2016-02-22 16:57:44.346496836 +0100 |
|
+++ galera-3-25.3.12/SConstruct 2016-02-22 23:29:20.325225818 +0100 |
|
@@ -101,6 +101,12 @@ |
|
link_arch = compile_arch |
|
if sysname == 'linux': |
|
link_arch = link_arch + ' -Wl,-melf_x86_64' |
|
+elif machine == 'ppc64': |
|
+ compile_arch = ' -m64 -fsigned-char -mcpu=power8 -mtune=power8 -mpower8-fusion -mvsx -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt' |
|
+ link_arch = link_arch + ' -Wl,-melf64ppc' |
|
+elif machine == 'ppc64le': |
|
+ compile_arch = ' -m64 -fsigned-char -mcpu=power8 -mtune=power8 -mpower8-fusion -mvsx -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt' |
|
+ link_arch = link_arch + ' -Wl,-melf64lppc' |
|
elif machine == 's390x': |
|
compile_arch = ' -mzarch -march=z196 -mtune=zEC12' |
|
link_arch = '' |
|
@@ -405,7 +411,7 @@ |
|
|
|
env = conf.Finish() |
|
|
|
-Export('x86', 'bits', 'env', 'sysname', 'libboost_program_options') |
|
+Export('x86', 'bits', 'env', 'sysname', 'machine', 'libboost_program_options') |
|
|
|
# |
|
# Actions to build .dSYM directories, containing debugging information for Darwin
|
|
|